With the garbage we get sold now days pretending to be petrol, it is a good idea to always run a engine dry rather than turning it off as the few seconds of lean , hot running burns off the crud on the plug.
Allowing it to run without firing may coat your plug with unburned fuel, which is conductive.
AFAIK there are no fuel safe valves in that size.
I advise customers to tip out the left over fuel then start the tool, it will run for a few seconds then run out of fuel.
Fuel is best stored in an air tight container as well which the tanks on tools are not.