add exeption handling to processor