a machine works and then stops