Bot reconnect fix from commit 1feedff02c50e3c89659a1a3abebfe50b7d743e5