soon the machine came to a dead halt and the motor that drove it rattled , sputtered and sighed to a stop , its final encore the explosion and ejection of black oily smoke from the chimney at the rear .