Glad you're OK.
Bike state is not that bad actually. Seems like the frame is intact. Forks and engine frame look untouched. I've read crash reports where they had same issue as yours and it was the kickstand switch. I think the other fellas in this thread may be onto something.
Bit off topic but the damage you took on the rear is why I also ride with rear crash guards. Look great on R/S models (not so sure on C models) and they protect the bike mid-frame and back in case of a slide. They're also cheap.
Tsukayu VTX hard bags & Tour trunk, Saddlemen touring seat with backrest, NC custom windshield, Risers, LED lightbar, Engine guard LED lights, Cobra fatty guard, Rear engine guards, Fender rail guard, Leather tank bib, Passenger floorboards, 12v socket, ISO grips WITH bar weights, Engine chrome, Triple tree cover, Shaft cover, Fenders chrome, Progressive forks & 12.5 inch shocks, All Balls mod, Chrome clock, Adjustable trunk rack