added error handling to consumer example