Good for the professor. I'd do the same. My life matters; my job doesn't. Unemployment is temporary; death is forever.
I wonder if in a case like this the student could be sued by the other students by putting in risk the future of all of them (and the life of some of them) in a way so irresponsible and childish.