system.addQuitProc is nice and very useful but due to its C-based implementation it doesn't support closures which limits its usefulness. This module fixes this. Later versions of this module will also support the JavaScript backend.
Procs
proc addQuitClosure(cl: proc () {...}{.closure.}) {...}{.raises: [Exception], tags: [RootEffect].}
- Like system.addQuitProc but it supports closures. Source Edit