Add default close operation for GUI.s