Put it at the very end of a scene, after the mistake has already happened, so it closes the moment instead of starting one. Use Dun Dun Dun before it to build the joke, then follow it with a Vine Boom to underline the fallout.