Maybe the teacher could be the bigger person and show grace? And you can explain about not saying things like that to teachers.