docs: public synchronized void shutdown() {
      shutdown = true;
      for (int i = 0; i < threads.length; ++i) {
        if (threads[i] != null && threads[i].isAlive()) {
          threads[i].interrupt();
          threads[i] = null;
        }
      }
    }