My car shut off randomly as I stopped and was turning, I was half way out when I couldn't turn my wheel and found out that my car shut off

at this time I was at the other lane and a car was comming right at me

I started it up and dumped the clutch and got outa the way, a middle finger followed but dammn. This is the second time this has happened to me in 6 months

any suggestions?