The bot buys the number of runs you set up, but plays only the first game of the last run and stops.
The expected behavior is either not to buy the last run or finish last run and don't buy another.
Seems like there is an unnecessary run check between games.