exception handling fix for membrane.evaluator