added functionality to clean up unstarted games when a user logs out or closes/leaves the game