Fix the edge case of trying to add a task after a target has already failed.

(And aborted the thread pool.)