Fix close_window.