Very occasionally a fetus may sadly be so unwell that the kindest option may be to stop the pregnancy.
More information can be found here.