what is the technical term for dooming yourself?

Petard was a very tempermental bomb used to blow up castles. Somehow I kinda like my definition in that the perp gets his or her comeuppance and must face it publicly. The bomb just blew them to smithereens.

Sorry, They Call Me Sneeze, I don’t mean to make disparaging remarks about your friend.

So, <drumroll> he was hoisted by his own parents?

Hmmm, even stopped the crickets.