Detecting reboot requests. Fixes #38