fix some game joining and server cleanup.