protected void cancelLoggingFuture(ScheduledFuture<?> logger) {
        if ((logger != null) && (!logger.isCancelled())) {
            logger.cancel(false);
        }
    }
Register a task as MBean
@param task task to register
plc4j/tools/scraper/src/main/java/org/apache/plc4x/java/scraper/triggeredscraper/TriggeredScraperImpl.java