diff --git a/dropship.py b/dropship.py index f6399cb..b13878a 100644 --- a/dropship.py +++ b/dropship.py @@ -96,4 +96,7 @@ async def main(): if __name__ == "__main__": - loop.run_until_complete(main()) + try: + loop.run_until_complete(main()) + finally: + loop.close()