Add `#on_logout` callback to agent