that syntoms you just describe is usually the speed sensor failing at the rear diff... the engine needs to know what speed the car is moving, coming to a halt, stationary .. it will feed fuel, adjust the icv, etc so that the engine does not die..
check that if all else fails..