Ending a Ride in Shallow Water

I've been surfing for a little over a year. I would say I am somewhere between a beginner and an intermediate...I can catch a wave, make a few turns, walk up and down the board a little...but I still have a lot to learn. I ride a 9' Pearson Arrow performance longboard (LOVE IT) and typically surf my home wave here in FL where the shore breaks are small and shallow. My question is around what is the proper way to end a ride when you are in a foot of water? I made the mistake of hopping off the side of my board (ok, so maybe I was going a little faster than I thought) and SNAP...there goes both bones in my leg. Now that I have had surgery and a lot of downtime to do a little self study, I'm wondering if I did something completely wrong or if it was just a freak accident. Seems like I've done the same thing a 100 times before with no flippin' fractures...but hey, i thought I would check to see what other think or recommend. Once I get back in the water, I def. don't want a repeat performance.