1. It never, ever actually ends
2. The Doctor sacrifices himself, no regeneration, so that all of his enemies and future enemies will never come back so that the universe is safe. He dies happily knowing this.
3. The Doctor somehow becomes human or runs out of regenerations and dies of old age but not before he sees echoes of all his companions and he is able to talk with them and he dies with a peace he had never known before.