Fix sleep window logic.
Clear alarms before setting new ones.