rpcTerminate and part of rpcExcute