class FragmentStatusReporter implements AutoCloseable {

  @Override
  public void close() {
    final DrillbitEndpoint foremanNode = foremanDrillbit.getAndSet(null);
    if (foremanNode != null) {
      logger.debug("Closing {}", this);
    } else {
      logger.warn("{} was already closed", this);
    }
  }

  public  FragmentStatusReporter(final ExecutorFragmentContext context);

}