Fixed major issue where messages were not being delivered to the error queue and were being added back to the consumer queue multiple times causing message duplication.