@Override
  public void close() throws IOException {
    if (this.connection != null && !this.connection.isClosed()) {
      this.connection.close();
    }
  }
Constructor with Conf object
@param cfg the {@link Configuration} object to use
hbase-examples/src/main/java/org/apache/hadoop/hbase/client/example/RefreshHFilesClient.java