Register a procedure for connection cleanup trace
void *Ns_RegisterCleanup( Ns_TraceProc *proc, void *arg );
Register a connection cleanup trace procedure. Traces registered with this procedure are always called in LIFO order at the end of connection, regardless of the result code from the connection's request procedure. In other words, the procedure is called even if the client drops connection.
It returns a pointer to the trace.