Fix the case where a task completes during indexing service coordinator restart causes improper cleanup