code: public void shutDownListener() throws TTException, IOException {
          for (ExecutorService s : mExecutorMap.values()) {
              s.shutdown();
  
              while (!s.isTerminated()) {
                  // Do nothing.
                  try {
                      Thread.sleep(1000);
                  } catch (InterruptedException e) {
                      LOGGER.error(e.getStackTrace().toString());
                  }
              }
          }
  
          Thread thr = mProcessingThread;
          if (thr != null) {
              thr.interrupt();
          }
  
          mWatcher.close();
  
          releaseSessions();
      }
docs: Shutdown listening to the defined folders and release all bonds to
  Treetank.
  
  @throws TTException
  @throws IOException