That goodness. I can totally understand having the inclination to panic in this situation... But I cannot understand shutting down and throwing my hands up in the air. I would have immediately looked into every possible way of getting this rectified. Teachers are people, after all; especially if you're a good student, they are willing to work with you. However, it is the student's responsibility to rectify a situation like this--not the teacher's!