fixed win32 exit