for (int myid = 0; myid < 3; myid++) {
for (int i = 0; i < 5; i++) {
// halt one of the listeners and verify count
QuorumPeer peer = peerList.get(myid);
LOG.info("Round " + i + ", halting peer " + peer.getId());
peer.shutdown();
peerList.remove(myid);
Thread.sleep((peer.getSyncLimit() * peer.getTickTime()) + 2000);
verifyThreadCount(peerList, 2);
// Restart halted node and verify count