Terminate test loop on the first error to avoid excessive log volume.