exit elegantly when headers read have issues.