Substitute the girl using the treadmill with one of the parents. The kid with the ball still gets caught, although the treadmill could get stopped sooner.
Unless supervision means the child never gets further away from the supervising adult's arm's reach, I think the only thing you can do is fence off the treadmill to keep free range kids and pets away.