TW.app.maybeQuit();
Checks first to see if any document needs saving (dirty). If so prompts the User for Save instruction and provides the option then to cancel the close/quit process.
Created with the Personal Edition of HelpNDoc: Full featured Help generator