Inside Macintosh: Programming With MRJToolkit / Chapter 2 - MRJToolkit Reference / Application-Defined Methods
The MRJQuitHandler Interface The com.apple.mrj.MRJQuitHandler interface contains one method, handleQuit, which is called when the Finder requests that the application quit.
com.apple.mrj.MRJQuitHandler
handleQuit