Fixed bot unable to reconnect to chat (resolved #5)