The Doctor realizes that her timeline has been contaminated by some force that will lead to (insert disaster bad thing). The only way to avoid it is to destroy centuries of her life, going back to before she was infected. To do that, she prevents the Master's wife from contaminating his resurrection, thus changing the outcome of the Specials years. She then thwarts the idiotic plot of the PM and whatnot that brought the Master back. Before she fades away, she warns The Master about his plan falling apart, and hands him the key to the TARDIS and a 2 minute head start. The Master flees.
The Doctor Fades away slowly.
10th Doctor arrives on Earth, finds the situation sorted, and goes on to more adventures. All of the 11th, 12th, and 13th's timelines are completely erased.
Scrapped, tossed, and redone.
Ideally, David Tenant returns for several seasons, or just one season, or at least one special so he can go out on a GOOD story. Invite Matt Smith and Capaldi back in turn, but give them actually good, well written stories.
A similar story was implied in Big Finish's story Colditz, in which 7th realizes he was set up by his future self after a disaster that would have lead to Ace's death and Nazi Germany winning WWII.
I'd give it five minutes and turn it off