Every now and then, though it's usually not intentional ;-) Sometimes you lose the bet and bad weather just catches you out on the road, or on the trail. In a lot of cases it's like riding in the rain, and you take the same precautions. Wind and lightning, though, make a big difference. In that case I'll find some sort of shelter -- a coffee shop, convenience store, in some cases, a park pavilion, parking deck, or even a tractor shed to wait the storm out before hitting the road again.
Visibility is key... remember that motorists can't see as well as you can in those conditions, and it's an excellent idea not to be in their way, to have lights and reflectors all over to mprove your visibility. Bon't blend into the background.