Initial graceful shutdown support, doc fixes