win32-os.c: Split up handle_exception