Assuming he had flaps down during final approach (if he didn’t, that was the cause right there) he should have backed off a couple of notches to optimize lift vs drag, rather than retracting completely. I was a long time glider and small plane pilot, my best nearly missed landing story: