Raise an exception if Newton fails to converge