ns_atexit {script | procname ?args?}
ns_atexit registers a Tcl script or procedure to be run when the server shuts down. This function is the same as ns_atshutdown.