The engine of the Auster I was Pu/t in, on my pre-solo check by the CFI, stopped at about 350ft on take-off....Aha! I knew what to do, nose down sharpish, trim, switches off, fuel off, land ahead.........
We were headed for a wood. Even as I moved the stick forward I felt the CFI shove it much, much harder as he said, very calmly "I have control". He was an ex-RAF Spitfire pilot and post-war RAF Instructor, retired. He carried out a very steep, diving 180, levelled and put it downwind on the grass. His next words were the other FI staple; "Don't do as I do, do as I say. If the engine fails on take off, get the nose down fast and land straight ahead."
We would almost certainly have been killed by the trees but for his actions. There are occasions when "Hands-on" is good. But I cannot abide FI's whose hands hover 2 inches from the controls during the approach and landing, especially on check rides. Either take control and explain why you're so nervous, or sit on them.