bfgs stop if energy not converged