fixed win32 don't exit