fixed delay at loading + bug fixdd

- canceled the agent delay at the begin
- fixed a bug - trying to write to log file after the file is closed.
happened when all the players left the game before it ended.