That's not a problem we've had with our pets. We had one dog who tried to fetch the lit fireworks — ground flowers were his favorite (he also liked to fetch golf balls). Our current dog is just as content to sleep through them. I guess that's one way to cope!
Have a safe and happy Fourth, wherever you are!