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