Put it at the turning point after the setback, then follow it with applause to close the scene. Open with a fail cue first so the switch lands harder, and keep a second celebration sound ready only if the ending needs one more beat.