Fix RPC connection leak.