By capitalizing on the mistakes that led to its downfall, Moonlighting put together perhaps the best ending to a beloved series ...
The final ep of Moonlighting aired OTD in 1989, and went full meta. Bruce Willis & Cybill Shepherd race to save their own characters, David & Maddy, from cancellation, because when the show ends they'll literally cease to exist. It even admits why Moonlighting ultimately failed