A pilot has fallen asleep on the plane by himself.