Registers code to be called when a process exits, even from a hard error such as segmentation fault. The form of the code is:
void function(bool);
void Object::member(bool);
The parameter is true when the exit is fatal, false if the exit is normal. As this may be called in the context of a signal, do
not do anything involved at all. If you want to get called on normal process exit, consider
atexit()
or
FX::FXProcess_StaticInit.