Use FirstOrderException so that LBFGS can continue.