I've done the same thing. It's not fun.
The first time was on my Peugeot, the release was loose.
Second couple times was my Stumpjumper. I can't seem to get it to stay in the dropouts no matter how straight, clean, tight, etc. things are.
My Gazelle has done it a couple times, none recently though. I blame the modern quick release here.