A contract whereby a teacher is employed is not discharged hy the act of the board in closing the schools on account of an epidemic of smallpox,1 or diphtheria,2 so as to prevent the teacher from recovering for the period of employment.