[Bug 1918] PostMessage(hwnd,WM_QUIT,0,0) doesn't exit the message loop