No doubt it was his quick thinking actions that saved both his own life and that of the student
A great pilot has the ability to get you out of a bad situation, a superior pilot doesn't put you in that situation in the first place.
Why the F%# do people still shut engines down after takeoff for training???