On IOError, pass criticalIOError=true when stopping the server
Related to https://bugzilla.redhat.com/show_bug.cgi?id=916625
Should not be using lock()/unlock() here (as that one eats an interrupt)
Merge pull request #1008 from FranciscoBorges/master

On IOError, pass `criticalIOError=true` when stopping the server