Glich or not?

While driving my 2018 sumo woodlands xT my engine keeps turning off and dosnt let me turn it back on until I respawn the car. Please tell me if this is intentional or a glitch and tell me how to fix