make sure exceptions cause an exit