had the very same thing happen to me in 2-3erd gear shift 2 years ago.. started fine then kept going...
ever do it again??
My guess as well.
+ a small outside chance of the sidestand switch having issues.
Get a new bike !!!!!!!!!!!!!!!!!!!!!!!!!!