Debug Statements - do not merge this on master
On IOError, pass criticalIOError=true when stopping the server
Related to https://bugzilla.redhat.com/show_bug.cgi?id=916625
make exceptions narrower
Should not be using lock()/unlock() here (as that one eats an interrupt)