catch alt+f4 event and exit event