I'm betting you're on a Workhorse chassis?
Common problem having to do with plugs under the hood getting wet. Do they shut off after the rain stops? IF it's like my Adventurer, there are two plugs between the firewall and the wiper motor. Take them apart and dry as best you can, air compressor or hair dryer, I think it is the corrsion build up on the contacts that gets wet and looses contact, acts like a bad ground. Some have had luck wrapping the connectors with tape, others use a plastic bag. I used tape AND put in an inline switch so I can effectively pull the fuse by flipping the switch. Not a great fix but, it works.