Certainly as the show was winding down, the cast and crew had a lot of lighter moments, and the season nine episode with Burt Reynolds is truly a classic.
The last episode (two parter) was pretty hokey, but the final scene was, IMHO, one of the best closing scenes of any show. Ever.
I just couldn’t get used to him.
Funniest ep, ever.
https://en.wikipedia.org/wiki/Jose_Chung%27s_From_Outer_Space
Once it became a soap opera, always centered around the cigarette-smoking man, it was unwatchable. The circus retirement community was a classic.