Make sure 'quit' is sent to tardy engine
We try to wake up an engine that should quit by sending it 'stop',
but that does not help when we are waiting for 'readyok' or 'uciok'.
To make sure 'quit' is sent before an impatient GUI kills us when we
are waiting for a tardy engine to produce these, we no have the GUI
thread sent an extra 'quit' after 500 msec, which will get to the engine
even when the engine thread remains blocked waiting for the engine until
the GUI kills us. The delay will also prevent excessive queueing of
'quit' commands when an EOF occurs because the GUI closes the stdin pipe.