added functionality to close remaining clients if one of the clients
exits the game