When making an emergency roadside stop, you should:

When making an emergency roadside stop, you should first signal and pull over. Get as far off the road as safely possible before shifting the transmission to the parking gear and setting the parking brake. Activate the emergency flashers, turn off the engine, and remove the keys. Check traffic before getting out of the vehicle.
DMV Writen Test