code: public void stop() throws Throwable
     {
        shutdown.set(true);
  
        if (!isExternal && executorService != null)
        {
           executorService.shutdownNow();
           executorService = null;
        }
  
        registeredPools.clear();
     }
docs: Stop
  @exception Throwable Thrown if an error occurs