Release every agent-scoped resource in the `finally` block so spawning, aborting, or finishing an agent leaves no lingering clients, hooks, caches, or background tasks.
Release every agent-scoped resource in the `finally` block so spawning, aborting, or finishing an agent leaves no lingering clients, hooks, caches, or background tasks.