813793db23
Review finding: the close block's comment promises a raising session_db.close() is swallowed with the flag already cleared (no re-close on a second agent.close()), but nothing pinned it. One test with a raising _RecordingDB proves both halves.