rem: if (itPtr->conn == NULL) { Tcl_SetResult(interp, "no connection", TCL_STATIC);
add: if (NsTclGetConn(itPtr, NULL) != TCL_OK) {
context: NsTclAtCloseObjCmd(ClientData arg, Tcl_Interp *interp, int objc,		   CONST Tcl_Obj **objv){    NsInterp *itPtr = arg;    AtClose *atPtr;    if (objc < 2) {        Tcl_WrongNumArgs(interp, 1, objv, "script ?args?");	return TCL_ERROR;    }    if (itPtr->conn == NULL) {	Tcl_SetResult(interp, "no connection", TCL_STATIC);	return TCL_ERROR;    }    atPtr = ns_malloc(sizeof(AtClose));    atPtr->nextPtr = itPtr->firstAtClosePtr;    itPtr->firstAtClosePtr = atPtr;    atPtr->objPtr = Tcl_ConcatObj(objc-1, objv+1);    Tcl_IncrRefCount(atPtr->objPtr);    return TCL_OK;}