Nikaah & Marriage Issues

Aborting a baby due to deformation of the baby

Q: My sister was 6 months pregnant when a scan showed the baby was not growing well. The doctor said this is a case that the baby will not grow properly. The baby has no lungs and is just alive on the mothers breath. The doctor said if you wait for normal delivery there will be some risks in the delivery and also to the mother's health. The doctor advised to terminate the baby. And we accepted the advice. The baby was delivered and in a few hours died. Sometimes I feel it was not the right thing we done. Maybe if she delivered on her own time then the baby would be alive. 

What is the Islamic ruling? Was what we done a serious sin? If yes, is there a chance of Allah's forgiveness?

Masturbation

Q: Scholars who don't allow masturbation as adopting lesser of the two evils like to avoid zina when there is real fear, do these scholars consider masturbation and zina equal in sin, when only done to avoid zina. What's their stance like many Maliki scholars and Shafi?