improved appProducer error handling