I used to just pull up the whole plant before a freeze, and hang it upside down in the garage, or playhouse to finish ripening
May have to try that way, we are expecting a freeze tonight I hear. :(