code: final void shutdown() {
  
        boolean deactivated = false;
        try {
           deactivated = deactivate();
        } catch(InterruptedException ie) {
           Thread.currentThread().interrupt();
        }
  
        if(!deactivated) {
           deactivateNow();
        }
  
        reopenService.shutdownNow();
        reopenExecutor.shutdown();
  
        for(Thread closerThread : closerThreads) {
           closerThread.interrupt();
        }
  
     }
docs: Shutdown the segment.
  <p>
  <ul>
  <li>Deactivate</li>
  <li>Shutdown the reopen service.</li>
  <li>Interrupts the closer threads, if any.</li>
  </ul>
  </p>