Fix leak connection when discovering cluster nodes