Wait. You want to fire an event after user closes the application? That's the last thing one would make as user. Exactly, why would you want such an event?
If you want to do it, let's say, as a confirmation system, you'd want to fire an event before calling the Application Quit, I guess?