Sewing machine running and stopping