Parent: #355 After `agent.run()` returns in both TUI and non-TUI paths, call `agent.shutdown().await` before exiting. Files: `src/main.rs` lines 564-579