Detect all tasks completion