Added handler for case where computed sleep time is negative.