Called for each visible top-level window when the operating system requests that all programs shut down. For each top-level window, this method is called only if the frame's can-exit? method returns true.
Calls on-close and then show to hide the window.