add option to RpcClient to enable keep-alive (false by default)