void transitionToDone() {
            state = State.DONE;
            doneMs = time.milliseconds();
            if (reference != null) {
                reference.close();
                reference = null;
            }
            doneFuture.complete(error);
        }
Whether we should destroy the records of this worker once it stops.
trogdor/src/main/java/org/apache/kafka/trogdor/agent/WorkerManager.java