# NousResearch/hermes-agent · Suppress traceback on repeated Ctrl+C during shutdown

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #25144: fix(shutdown): catch KeyboardInterrupt in cleanup paths + add CI regression gate

A bug report and multiple fix attempts addressing KeyboardInterrupt tracebacks that appear when pressing Ctrl+C more than once during CLI/MCP shutdown or browser cleanup. The fixes focus on widening exception guards to BaseException in shutdown and atexit paths.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #109167. Verify it addresses your case.
- **Recommended:** read PR #109167 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-109167`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #10764: \[Bug\]: KeyboardInterrupt traceback on exit when pressing Ctrl+C multiple times

## Prior & competing PRs

- **#109167: Double Ctrl+C on exit no longer prints a browser-cleanup traceback (#10764, salvage #10765)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_browser_cleanup.py`, `tools/browser_tool_lifecycle.py`
- **#10765: fix(browser): suppress KeyboardInterrupt in atexit cleanup thread stop**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `cc6d86a83d`, `#109167`
- **#11149: fix 10764: handle multiple atexit calls in browser cleanup**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#10764`, `#109167`, `#10765`
- **#25144: fix(shutdown): catch KeyboardInterrupt in cleanup paths + add CI regression gate**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `5a5363c2b`, `#22876`, `#10764`, `#24220`
  - files: `cli.py`, `scripts/detect_keyboardinterrupt_gaps.py`, `tools/browser_tool.py`, `tools/mcp_tool.py`

## Fix status

- Merged to main in PR #109167 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-12`.
- Subsystem: `agent`
