If Trump loses, and absent some surprise...I thnk he does, the GOP will be forced to sanitize the party of all things trump. And, honestly I believe that most within the framework will breathe a huge sigh of relief.
If Trump loses in November -- and it's not an absolute landslide -- then all bets are off. There is no telling what he and his supporters will try and pull. There are well documented plans in place to challenge any and all election results starting at the precinct level. The aim will be to prevent the results from being certified and to challenge any results that aren't favorable to Trump, in the hopes of eventually throwing the naming of the President to the House, where the Pubs control the majority of the delegations.