A Florida man is rethinking his purchase of a new battery for his laptop after it caught fire while sitting on a table.

Gil Sanderford told WTVT that he was working beside his 2007 Macbook laptop at his Tampa-area home recently when the device caught fire. "I didn't know what to think. I'd never seen anything like that in my life," he said.

>> Read more trending stories 

Sanderford said that he had purchased a new battery for the device about a year ago. WTVT reports he purchased the battery at a Batteries Plus store and it worked fine until it caught fire.

"It was closed, charged, and I heard a hissing sound and sparks started flying out from underneath the computer on our dining table and then this white, thick electrical smoke started pouring out of it," Sanderford said. "All I knew to do was grab it and try to get the door unlocked and get it outside as fast as possible."

Sanderford told WTVT that he is working with Batteries Plus to get his laptop and table replaced, and is happy he wasn’t asleep at the time of the fire.

This isn't the first case of an electronic device catching on fire. Recently after Samsung announced a recall on their Galaxy Note 7 phones after the batteries were exploding, with one case causing a Florida man to lose his car and a Palm Beach Gardens man to get injured due to his phone melting. A man in Missouri also was injured when his iPhone caught on fire in his pants.

Read more at WTVT.