Availability:C-language interface function
void * argument holding
closure. If global is TRUE, the 
handler is installed
for all threads. Globally installed handlers are executed after 
the thread-local handlers. If the handler is installed local for the 
current thread only (global == FALSE) it is 
stored in the same FIFO queue as used by thread_at_exit/1.