diff --git a/contact/__main__.py b/contact/__main__.py index 57671db..073d18b 100644 --- a/contact/__main__.py +++ b/contact/__main__.py @@ -129,8 +129,10 @@ def start() -> None: try: curses.wrapper(main) + interface_state.interface.close() except KeyboardInterrupt: logging.info("User exited with Ctrl+C") + interface_state.interface.close() sys.exit(0) except Exception as e: logging.critical("Fatal error", exc_info=True)