exit the solver if something goes wrong