Win32: Properly shutdown when using File->Exit, or when g_Config.bEscapeExitsEmulator is true.

We're not shutting down properly when either of these two are used, so let's send a WM_CLOSE to tell the program that we need to clean up (WM_CLOSE is where we handle stopping all threads and turning off RawInput, etc.).