A 32-year-old woman at 35 weeks gestation presents with BP 160/106 mmHg, severe frontal headache, and 3+ proteinuria.She has no prior history of hypertension.What is the definitive treatment?