close_window should operate on active window if param is not provided