Fix bot not disconnected when updating.