Added code from old exitgame branch to start with.
Exiting the game during play will send a LEAVEGAME message.
Message to leave should do all exit-related things.