early terminate the parser when bfgs converges, originally from spaghettification