Custom event for host disconnect


I’m looking to implement a custom event system for what the clients are to do when the host disconnects. My current situation is that I have a listen server running and a client connected, if the host closes the server, the client is booted back to the default level. I would instead like to have it remain in the level it is currently in, giving me the option to handle level changes myself.

Is this doable?