You may have to steer left and right several times before the car becomes controllable. This is especially true when the road surface itself is working against you, like a long patch of ice or spilled oil. Once the car is under control, get your own emotions under control. Pull off the road as soon as possible and do something to calm your nerves. Inspect the car for any permanent damage.
Skids are sudden, unexpected incidents, and can be quite unnerving.
An emotional driver is an unsafe driver, so give yourself time to recover from such a shock to your sense of confidence as a driver. As an absolute last resort to an unrecoverable skid situation, aim your car to the right and hope that you strike something that will deflect the impact, like a guard rail or soft ground. Dented metal can be fixed, so put your personal safety needs first. By aiming your car to the right, you may prevent a much more serious head-on collision. The key to successful skid correction is aggressive driving behavior.