There are times when I have nearly gotten into car accidents. It could be my fault or it could have been neglect from another driver. Immediately after there is a little bit of fear creeping up. Fear that driving more it may happen again. Fear that I would not be so lucky.
The best course of action I have taken in this situation is to immediately push on the gas pedal to move confidently out of the area. Doing this helps me to limit the association of driving that day with a bad event. Doing this keeps driving a more positive experience.
Our subconscious mind is very strong and it needs to be nurtured to keep out negative associations from neutral experiences. We cannot always keep avoiding things because of a single bad experience.