Fixes issue #7: Add error handling to consumer