In public, he would congratulate the winner, just as he did when he lost state primary votes to Cruz.
I don't know how he would behave in private. I would venture to guess it would certainly be no worse than Hillary, when she snatched defeat from the jaws of victory in 2008, and lost the nomination to Obama.