The exit and error procedure routines enable you to register your own routines which are executed by the run-time system when your application terminates, either normally or abnormally.
CBL_ERROR_PROC
Installs or removes an error procedure to be invoked automatically when a run-time system error occurs.
CBL_EXIT_PROC
Installs or removes a closedown procedure to be invoked automatically when the application terminates.
CBL_GET_EXIT_INFO
Enables an application to determine under what circumstances an exit procedure has been invoked.