When you say it switched off when stationery, is it the auto stop/start even though it is disabled or shutting off for some other reason? Do you have to press the stat button again or just lift your foot off the brake?
It might be switching off due to some other issue (battery running flat, lack of fuel, air flow, etc.)
Focusing on the auto stop/start feature might be derailing from the actual issue.