The Cam or Crank sensor overheats and the computer will not catch it quick enough and let the car die. The bad sensors are rectangular in shape, original equipment. The replacements are metal and circular in shape. The original, if they are rectangular, and plastic looking need to be replaced with the new style. By The Way both sensors need to be replaced at the same time, Camshaft & Crankshaft sensors. Then the Dealer has a recall # R0606, That will reprogram the computer for Free, No Cost to you. Don't let them charge you. Scan the computer, Auto Zone will do it for no charge, If the Cam or Crank shows this is your problem. Have repaired 16 the last 2 yrs. Good Luck.
The dirt on the bottom of the tank is always strained. It's not because you ran out of gas. It's just the gas that we get The pump sucks from the bottom of the tank all the time. But check the recall anyway just to be safe.