Lots of people will probably have opinions on this topic. Here is what I do: First, I check the weather forecast before I go out. Second I make sure that the local WX station in my area is on my VHF scan list so that if a weather alert occurs I will hear it.
Then I watch the weather conditions during my sail. If the sky becomes threatening, or even looks like it might be threatening, I punch up my radar to the 48nm range and look for thunderstorm cells or rain. You may not have that option on your 25' boat, although I am sure that some people do have radar on boats that size. Anyway, I can easily see rain and storm conditions on the radar long before they get to me. And on the radar I can see location, direction, and speed of the storms. I will know if I am to be hit or likely miss from the radar.
Most importantly, get the sails down BEFORE the storm hits. Tie down anything that could get loose. If you are towing a dinghy, get it on deck and lashed down tight. It's better to motor for an hour waiting for the T/S than to be caught with sails up. DON'T wait until the storm is almost upon you. These things can move at impressive speeds.
When the storm hits, I have sails down, rain gear on, everyone has PDFs on, and I just motor in the direction that is most comfortable.
It is important to position yourself with some sea room because when the rain and wind hit, visibility can drop to zero. You don't want to be around anything that you might hit- other boats or land. 50+ mph winds can push you quite a ways, so be sure that you have LOTS of room.
It's not fun.