code: public synchronized void interruptAllPendingAuth(){
      for (AuthThread toStop : nodeMap.values()) {
        if (toStop.isAlive()) {
          getLogger().warn("Connection shutdown in progress - interrupting "
            + "waiting authentication thread.");
          toStop.interrupt();
        }
      }
    }
docs: Interrupt all pending {@link AuthThread}s.
  
  While shutting down a connection, if there are any {@link AuthThread}s
  running, terminate them so that the java process can exit gracefully (
  otherwise it will wait infinitely).