A pilot had a lucky escape when he managed to land his light aircraft after a string of technical problems.