relay: do not process headers after the first error