If unpacker encounter error it sends result header immediately - detect it as soon as possible and do not send rest of file(s).