in reply to Too many "or die" clauses?

Looks nice and solid to me. If you consider the code ugly, stick it in a sub.