Disable the fuel system cutoff controls during the takeoff climb phase of flight. Once the aircraft loses contact with the runway, these controls shouldn't function without tripping certain thresholds (speed & altitude), or following a two-man procedure that is physically impossible to execute solo. In any other flight regime, the controls function as originally designed.
The danger of a burning engine is irrelevant if you are heading into terrain.