call server.stopObserving when leaving the game window if the user is an
observer.