Sparks SHOULDN'T be flying around inside, but remember these things are made in China! There are electronics inside, connected to 110 volts. The potential for sparks is there. Most also have tank heaters. Now, with atomized gasoline wafting out of the tank-would you feel this is a safe practice?
Using water-based cleaners is fine. Flammables are another story altogether.