Add stop command to rpcserver.