only dispose bot and client if they exist