Win32: Properly shutdown when using File->Exit, or when g_Config.bEscapeExitsEmulator is true.
Merge pull request #5838 from thedax/win32BugFix

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