Fix log_helper to abort if iterations have the same error count