Added the default close operation for the window.