That was a light using rechargeable 18650 lithium ion cells, which are known for having the potential to explode.

I use only AA and disposable CR123 batteries, for exactly that reason - much less concern about them accidentally going boom if you do something stupid.