public synchronized Map<Long, TaskStatus> getTasks() {
        return new HashMap<>(tasks);
    }
Removes the task from the collection of currently running tasks.

@param taskId
@throws IllegalArgumentException if there is no task by that taskId in the collection
tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/ServerStatus.java