Be sure to error task if scheduling the task fails after it has been popped from the queue