I had a dog like that once and the vet told me to ignore the thunder and go about my business. In time the dog learned that the thunder was nothing special. However, my dog hadn't been abused or anything like that. I imagine it's tougher in those cases.