Some apps, like Activity Monitor, don't have a 'Main Window' causing XCT to poll for it until timeout. This basically makes XCT unusable. This version checks to make sure a Main Window is possible before polling