shortcut function for closing bot