Complex sentence: The actress filmed her final scenes in August 2017 and Kat was killed off in the season finale, broadcast on 18 December 2017.
Split into simpler sentences: The actress filmed her final scenes with the show in August 2017. She departed when she was killed off in the season finale on 18 December 2017.