Hmm, that is odd. Assuming you used a good CPS (
@CassC and
@petrabid), then there's very few things left that could cause the car to simply shutdown midway.
K40 relay on W210, EIS on the W211...
...other than that, a loose MAF connection will do that. Some cars, if you unplug the MAF while it is running, it'll shut off immediately. I haven't seen this on my 97 E320 or 98 E300D, but those cars use a different engine and different engine management modules, so.... you guys could try that. Start the car, then unplug the MAF plug. See if it shuts down. You should have a code reader handy, because once you unplug, the CEL will come on. Plug it back in after your little test, clear the codes and be on your merry way.
A bad throttle body (if the IAC in it is really gunky) or if it closes completely when it is not supposed to, or an intermittent fuel pump cut out.
In CassC, that code refers to the accelerator pedal sensor, which is NOT the throttle body, but the little sensor that is next to the brake booster.
The CEL going out is fairly normal. The ECU constantly monitors the engine and whatsnot. If after a certain number of start cycles (ie. shut off, cool down engine, start, run, shut off, rinse and repeat) and the problem does not show up, the ECU will turn off the CEL and clear the codes. By itself.