Place it as the closing section of an edit, after the struggle or goodbye has played out, so the change in the story carries the ending. Follow it with a short cheer or laugh, and keep it as the final musical moment rather than adding another song after it.