2006 Mitsubishi Galant shakes and shuts off

Car shakes real bad when you come to a stop and turns off

The check engine light should come on when the car dies anyway but have the codes read on principle. One possibility is that the throttle body needs to be cleaned. Or the idle air control valve could be bad. Or, much worse, the torque converter lockup could be malfunctioning. Start with the cheapest and clean the throttle body, then go from there.