For reasons I don't understand, this fixes a problem in the full test pass where, when UIAUTOMATION.SENDBUTTONPUSHTOWINDOW was called after a WM_CLOSE was sent to the editor, the button wouldn't get pressed and the test pass would stall out, requiring manual intervention to nudge it along.
A simple repro for this problem is "SAVETEST READLISTTEST.UI".