Improve sleep with shutdown support to ignore any exceptions terminating the sleep