if win32gui.SendMessage(handle, win32con.WM_CLOSE, 0, 0):