Place it right after the failed moment peaks, then follow it with the SpongeBob Fail for a second comic beat, or lead in with the Dun Dun Dun before the reveal so the audience expects trouble and still laughs at the result.