did it once in traffic, taking off from a red light. locked up, skidded, popped up, all kinds of haywire but I managed to stay upright. Basically huge torque + ever so slightly loose skewer (and from a trainer I would later find out - the shop never put my shimano back in). Ended up jammed against the stays like you said.
Heal up and make sure that stuff is straight and tight!