Fix sleep. Improve shutdown response time.