@Override
  public void stop(String why) {
    if (this.stopped) {
      return;
    }
    this.stopped = true;
    if (!shareConn && this.conn != null) {
      LOG.info("Stopping " + this.conn);
      IOUtils.closeQuietly(conn);
    }
  }
Implementation of a file cleaner that checks if a hfile is still scheduled for replication before
deleting it from hfile archive directory.
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/master/ReplicationHFileCleaner.java