If you spot the fire early you can grab the fire extinguisher and put it out before it grows too big. I can try and fix the bug you found though, if you use it for long enough it should put out any fire which it may not be doing right now, sorry!