When resuming Windows from Hibernation, handle the exception from WindowsAPI

Fixes #121.