When resuming Windows from Hibernation, handle the exception from WindowsAPI.
Merge pull request #131 from jansokoly/tmp_exception_fix

When resuming Windows from Hibernation, handle the exception from WindowsAPI