Checking if requested time is in the past to avoid firing alarm immediately. Removing wakelock. Optimizing alarm cancelation.