Function:
Defines a sub-procedure to gosub just before closing the application. Can be use f.ex. for housekeeping, s.a. closing files or clearing flags, etc.
Syntax:
OnCloseGosub <ProcedureName>
Example:
OnCloseGosub "MyCloseProcedure"