If this happens to a pregnant woman, she can be maintained on life support in this state of brain death for some time, until such time as it becomes more dangerous for the baby to remain in the womb than to be born, and then the baby is born, and then the plug is pulled.