Occasionally there is a timing issue immediately following the battle forfeit. It happens when the cursor moves to the lower center of the screen for the "Reattempt Battle" button: the button has not appeared, but the cursor moves there; when it does appear roughly two seconds later, nothing happens (I presume the bot has already attempted to click).
This is a new error since the terribly buggy patch update, and it doesn't always happen. It usually takes me until the second or third run for this to occur. I made sure not to touch *anything* while running the bot, and finally caught the error right there while watching run 3 finish.