Close the window to return