Runs and shuts off

If it was cold and damp, I would have suggested checking for carb iceing. I have had that happen more then once. Carb would ice internally, and shut the engine down. Get to the side of the road, and there was enough heat soak to melt the ice, before I got the air cleaner off. Tore my hair out, before I found that (the first time).