added firing windowClosing Event on ESC press