Envelope stress responses: balancing damage repair and toxicity