GetLastError: Invalid window handle. (1400) Errno: None(0)