You should be able to pull out of this okay. I was afraid that you didnt have any masters and hardly any tech points. It will take a bit but you should be fine. One of my villages was in a much worse condition.

p.s. IF you leave your game make sure to pause!