Bots now have mutexes, made handlers thread-safe