LOS ANGELES (CNN Money) – A Tesla Model S that was being driven by the husband of actress Mary McCormack caught fire in Los Angeles last week, McCormack tweeted Friday night. She posted a video of the car stopped along the side of the road with flames and smoke coming from underneath it.

“This is what happened to my husband and his car today,” McCormack wrote. “No accident, out of the blue, in traffic on Santa Monica Blvd. Thank you to the kind couple who flagged him down and told him to pull over. And thank god my three little girls weren’t in the car with him.”

READ MORE: Texas Experiencing Another COVID-19 Surge

Tesla cars, which run on electricity stored in large battery packs in the floor of the vehicle, have been involved in a few recent incidents where the cars have caught fire after high-speed impacts. Gasoline-powered cars also sometimes catch fire even without a collision.

“This is an extraordinarily unusual occurrence,” a Tesla spokeswoman said in an email, “and we are investigating the incident to find out what happened. Our initial investigation shows that the cabin of the vehicle was totally unaffected by the fire due to our battery architecture, which is designed to protect the cabin in the very rare event that a battery fire occurs.”

READ MORE: Administrative Court Judge Orders Mask-Wearing To Enter Dallas County Courthouses

Tesla cars are 10 times less likely to catch fire than gasoline-fueled cars, the automaker said, citing data from the National Fire Protection Association and U.S. Federal Highway Administration. Lithium-ion batteries, like those in Tesla cars, also ignite more slowly and burn in a more controlled way than gasoline.

Battery fires can be harder to put out, though, and require special treatment by firefighters. Tesla and other electric vehicle manufacturers are training first responders on how to deal with crashes and fires involving electric cars.

McCormack tweeted that her husband was unaware of the fire under his car until passing motorists flagged him down. He was then able to pull over, stop the car and get out safely.

McCormack appeared in the TV series “The West Wing.” She also appears in a new ABC comedy series called “The Kids Are Alright,” about an Irish family in the 1970s.

MORE NEWS: Summer Break Ends Early For Some Dallas ISD Schools

(© Copyright 2018 Cable News Network, Inc., a Time Warner Company. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)