I usually plan ahead and unclip well before a stop. I've had one incidence where someone in front of me stopped unexpectedly and I went flopping onto the grass at 0mph.
In the Spring, I had a sudden stop where I wrestled out of the pedals before I went down, but I managed to take a nice amount of skin off with my big ring in the process...