I could need an "atexit" function, that may work als following: if the program is terminating, call all atexit-functions before exiting / cleaning up.
example:
atexit(function1())
atexit(function2())
...
the program exists, but before cleaning up it starts the first, then the 2nd function before cleaning up internally.
An exit-handler is a thing that I am waiting for, and it would help a lot for the things I am developing with pb.
atexit-function needed
atexit-function needed
[regged pb user]