Fixed compiler warning.
Avoid writing the players.xml file multiple time at the exit time.