Error cases in this function don't wake up the task.