docs: public void close(){
          if(connection != null){
              try {
                  connection.close();
              } catch (IOException e) {
                  LOGGER.warn("Close the DirectoryConnection get exception - " + e.getMessage());
              }
              connection = null;
          }
          if(watcherManager != null){
              watcherManager.cleanup();
              watcherManager = null;
          }
      }