How do i go about executing a piece of code if someone clicks the X on the program menu? or even if they hit ALT+F4?