Just to clear a few things up,
That funny noise your starter made when trying to engage it while the vehicle was still moving... that's the gear in the starter trying to engage onto an already turning flywheel, NOT a good idea.
The check engine light comes on whenever you turn the key to the 'ON' position, this is a bulb check, happens in every car. When the car stalls out the ignition is left in the 'ON' position. So therefore the check engine light will be on until the ignition is turned off or vehicle is restarted. This is not a code setting.