do not call callback twice if error is throwing on consumer callback