I want to hook the disconnect event.

Hi, everyone. I’m now programming a simple game server in Pomelo. Pomelo is good. Easy to use.

But I have a problem. I wanna hook disconnect event in server-side. Of course, Pomelo remove the session when connection crashed. Btw, I have to do some additional things when disconnected, or the game logic crashed. Can anybody help me?