I've done this, now it just waits for 25 seconds before Stopping the bot.
EDIT: The reason my bot was stopping after every single Rift. Was because I was using a .xml file named: R-Rift (1).
So If anyone else is having the same problem, its probably because you changed the name on the .xml...