How can I catch occasion, when player has disconnected the game?

I’ve tried to use AGameMode::Logout(..), but at this point pawn & PlayerState are already dead. =(