Handle GUI disconnection
Handle GUI disconnection

Reading from a disconnected stdin was probably the cause of the log file
blowing up in the past. The protects against the GUI cutting off the
program without sending "quit".

MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess