This joke was a bit heavy for them, so heavy that they almost killed such a good teacher.
Sometimes in our daily life we play jokes on others without knowing the consequences on people. Sometimes it is psychological damage that we do not see and only the person affected feels it.
It is an excellent reflection on jokes and to stop making them.