diff --git a/cli.py b/cli.py index d429e14fc..0e97c480d 100644 --- a/cli.py +++ b/cli.py @@ -974,7 +974,7 @@ def _run_cleanup(): try: from tools.mcp_tool import shutdown_mcp_servers shutdown_mcp_servers() - except Exception: + except BaseException: pass # Close cached auxiliary LLM clients (sync + async) so that # AsyncHttpxClientWrapper.__del__ doesn't fire on a closed event loop