Easiest way out that I know is to read the Met before you fly!!
Otherwise, don't fly if any actual+forecast cloudbases en route are below the MSA.
Great sentiments - only trouble is that even this does not
always work!
The time it happened to me (Many years ago now) I had a good forecast, I was just round the NW corner of the London Zone and the wx came in from that direction so trapping me between the London Zone and the bad wx. - found a nice big field and landed in it, waited with a cup of tea in the farmhouse I had made sure was at the end of the field, then continued when the wx cleared about 4 hours later - NO problem.