private boolean isTerminated(final TaskContext taskContext) {
        return Thread.currentThread().isInterrupted() || taskContext.isTerminated();
    }
API used by the tasks to interface to the stream store under the bonnet.
stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/FsOrphanMetaFinder.java