I cannot agree with the comment above:
When a capsize appears imminent, just let go of everything, and the boat will "snap" right up.
The problem is if you do end up going over, you can get separated from the boat, which can be a problem if it is windy. Best practice is to hold on to the end...