Closing RPC connection in case of failure.
Merge branch 'replication'