... and isn't it not good airmanship to retract flaps on final unless you're doing a go-around?
The person was doing an engine-out emergency landing. If he had lowered flaps too early and making the field was unlikely, raising them again would be prudent.