Resigning mid-semester

I'm pregnant and due in September. I need to stay on as a teacher to stay imsured. After I give birth I plan to take 12 weeks for family leave, but after that I expect I'll need/want to not finish out the year. It's been a rough pregnancy already with multiple hospitalizations.

Anyone resign mid semester? Did the district impose penalties?