Adding logs when computer is going to sleep or is waking up