basically once you notice you lost control of the car, let off the throttle and brake momentarily. the car will recalculate and get the car back out of a spin, then apply brakes.
most often people over compensate and crash.
ofcourse thats if youre not going excessively over the car's limit.