Having read your account of what happened I would say that you did the best thing under the circumstances. I know I would rather be closer to shore in shallow water than far out in deeper water.
If you fly regularly at the airport in question had you thought during the pattern, "If it quits now I'm going to do this and go there?". If so, did you do what you had planned?