I really don't know. It's a bad time to ask all the experts are in bed drunk, I mean asleep and that leaves you with the likes of me.
I guess I would have to see if it did the same thing if I left it in third gear and pulled the clutch in and came to a stop. I don't think you could be getting on the kickstand switch, or accidently hitting the killswitch.
I know it doesn't help but it's always one or more of three things; fuel, air, or fire.