However, I would add to that: if your mainsail is out when you right the boat, make sure you get onto the boat from up toward the front. If you go to the back of the boat to get back on, and the mainsail is out, the boat will turn away from the wind and take off, maybe without you.

It's sort of like you can't control a horse by holding onto its tail.