Ensure that the time-out for sleeping is never negative.