diff --git a/system/athena/athenad.py b/system/athena/athenad.py index b5a8f5127fed13..9c9acf2c13c272 100755 --- a/system/athena/athenad.py +++ b/system/athena/athenad.py @@ -801,6 +801,8 @@ def main(exit_event: threading.Event = None): cur_upload_items.clear() handle_long_poll(ws, exit_event) + + ws.close() except (KeyboardInterrupt, SystemExit): break except (ConnectionError, TimeoutError, WebSocketException):