previously we wouldn't reliably close the window for unknown reasons. maybe because of WA_DeleteOnClose?