Add rpc retry when an rpc connection was unsuccessfully