decremented exit guard when failed to write header