The Fugitive was an early one to have an ending, he found the one-armed man.
Newhart had about the best ending ever.
If I had a long running TV show, I would make a last episode indistinguishable from the rest of the episodes. Just a caption at the end:
“This was our last episode, thanks for watching.”