In the following example, the exit action for the macro is set to close the application.
SetExitAction 'o/s'