Workaround for failure to close window with last tab.