Put it right after the fail or twist in your edit, as the reaction that closes the scene, then follow it with Ba Dum Tss for a comic punchline or Mission Failed when the mistake ends the run.