[core] Eliminate useless error message when the bot quits