finish parent task when all subtasks are done