adding error listener to rpc stream