newton solver exceptions catched