handling error raised from producer