The method needed to arrange for an object to be notified when a window’s close-window button has been clicked is