Certainly seems like Donald put his organization into overdrive to pull this off otherwise perhaps he was planning for it.
He made his own luck. But yeah, he probably was considering bailing and had a plan B in the works.