Breaking Bad is a great example of showrunners ending a show when the time is right. With how popular it was towards the end they could have turned it into a 10 season show and ran it into the ground, but now it'll be remembered as one of the greatest pieces of TV ever made.