We prevent end-users from being caught in an infinite loop interaction with any custom bot.  

Even when its own logic hasn't caused it to terminate sooner, a custom bot terminates automatically after it has done 25 things. This threshold is consistent with  the maximum permitted number of bot steps (25) per custom bot, but also prevents any action from repeating incessantly.  

Upon terminating, bot involvement with the open issue is interrupted, and the issue is reassigned back to the same queue that first routed the issue to the bot.