I would check vacuum lines first, make sure they're all connected, and that none are cracked or anything. I think a bad crankshaft position sensor can also cause it to shut off, and probably a bunch of other sensors too.
Is the check engine light on?
__________________
|