Fix potential undefined var in exception block

It's win32 code, so I can't test it myself.
The intent seems to be to fall back to POSIX-style handling when poking
at the problem with the Win32 API fails.
Log the exception, pointing out the blank bits on the map.
Here there be less tested code.