Detect when the bot gets the link closed on connecting