cleanup thread CalledInRepThreadAbortProc_ code