i chat on different servers, so when i close a particular server status and leave all the servers rooms, how can i trigger some event?