Stop optimization if we do not make progress