added check for exceptions of bot