Added cleanup to end of bot run