Modify error handling in CModel to bail out when any component fails