Sleep events (BeforeSleep and AfterSleep) are raised around precise Sleep command.
if Sleep
[BeforeSleep]
Execute sleep
[AfterSleep]