class ScannerContext {

	private void cleanup() {
		logger.debug("cleanup");
		cleanupQueue.forEach(c -> {
			try {
				logger.info("invoking cleanup task: {}", c);
				c.cleanup(this);
			} catch (Exception e) {
				logger.warn("problem during cleanup: " + e);
			}
		});
	}

}