private static boolean isLifecycleActive(final LifecycleOwner owner) {
        return owner.getLifecycle().getCurrentState().isAtLeast(STARTED);
    }
Call this method to "finish" a task (means: when result is processed)
main/src/main/java/cgeo/geocaching/utils/workertask/WorkerTask.java