Began implementing shutdown function for bots.