If the button doesn't work, close the window.