Trigger event when shutdown space

i want to check when admin press shutdown space,
have subscribeToEvent or solution for check by websocket api?

I tried game.subscribeDisconnection it return status 4001 when shutdown space after that my app is stop process. it ok

but i dont know if it return another status. it will stop process my app all status?