Well, first off, I would suggest not using your modem during a thunderstorm unless you have a good surge protector on the phone line.

Do you ever notice crackling or a rough dialtone on the phone right after a storm/rain? Perhaps the phone system suffers from a lack of necessary insulation from the elements. (The phone system at my house did such things for a while until we got it fixed.)