Such last lines as the one in the Bond film are supposed to make you groan. That's the entire point of the line, and nearly every Bond film I can think of does the same thing.
The other examples aren't very good lines, but the Bond line does exactly what it was meant to do, and is a long established method of ending Bond films.