blow up in (someone's) face
to be ruined while one is working on it (a plan or project etc.), to explode suddenly
The secret plan blew up in our face when we discovered that everybody already knew about it.
The bomb blew up in the man's face.
More Idioms ...