A 28-year-old woman at 38 weeks gestation presents with severe headache, visual disturbances, and blood pressure of 158/105 mmHg.Urine dipstick shows 3+ proteinuria.Which is the definitive treatment?