added better quick exit when catastophic failure occurs