a machine works then stops