Fix gift#close_window_by().