code: private boolean isInterruptTransitively(Throwable e) {
          do {
              if (e instanceof InterruptedException) {
                  return true;
              }
              e = e.getCause();
          } while (e != null);
          return false;
      }
docs: Special case during shutdown.
  
  @param e possible instance of, or has cause for, an InterruptedException
  @return true if it is transitively an InterruptedException