jsonrpc: reset the local reply structure before executing new commands