log file bug fixed

the log file is closed after all the players leave the game.