Not all TV shows say goodbye the right way, but these masterpiece shows set the gold standard for perfect endings.