Obviously the answer is to buy a smart fire extinguisher, so you can remotely put out the flames from your hacked smart printer.
Until someone hacks the fire extinguisher and makes it spray chemicals at you. Then you'll need to add a smart fire extinguisher extinguisher.