switch to a random machine in the machine list if cannot connect to the current leader