scheduler cleanup - part-cw/lambdanative GitHub Wiki
(scheduler-cleanup)
scheduler-cleanup runs cleanup functions in all plugin instances. Uses, e.g. to close output files when the main application terminates.
Example
Example 1: Closing function of a data collection application
;; termination
(lambda () (scheduler-cleanup))