A machine whirled around the factory and exploded with a sudden bang.