Like LTG said, check the ball trough for divots by observing if all the balls in the trough move when the trough popper ejects into the shooter lane.
If the balls are hanging up, then roll down during a ball in play, could make the machine think the ball ended.