Pull the plants, roots and all just before the killing frost. Hang them with the beans attached in a sheltered, semi warm area to allow them to continue to ripen and dry. If these are pole beans, ignore that and pick the pods that have changed colors and take them inside to dry.