Bankruptcy filings carry a stigma but sometimes the outcomes promise new life. Proterra might be one such story.