catch failed to connect RPC