Place it at the end of a short fail sequence, after the Nelson's Ha-Ha! cue sets up the joke, then follow it with Sad Violin to turn the moment into a mock tragedy before cutting to the next scene.