Currently if there are any issues flagged added as sub-issues either directly or via reference issues that, error for some reason and are not linked as sub-issues, the entire task list is left intact. Instead, remove only the issues that are successfully linked as sub-issues from the task list and leave the issues that weren't linked in the list.