Menu windowClosing event