Fix for error happening during error processing in task queue.