What has to go right...
The team members have to have the skill and the practice to rescue bad situations with the least possible time impact (be that due to damage, penalties, down-time in the pits/paddock, or anything else).
Here, friends and teammates check on the driver (center) of the race-leading #64 Motorsport Solutions Porsche 997 Cup car. The car lost all brakes due to a mechanical failure while heading toward Turn 10, which is at the end of a downhill, high-speed straight where the car was pushing 110mph. The driver managed to slow the car down enough and maintain enough control to avoid a concrete barrier, park the car on top of a berm, and then grab his fire extinguisher, get out, and douse a small brush fire that auto-ignited under the beached vehicle. At that point, the NASA safety crew showed up to recover the vehicle and tow it back to the paddock.
Despite losing race positions after the incident, with some mechanical fixes and solid driving overnight, the #64 car had regained the lead by the time the sun rose over the track. Other mechanical issues bit two hours before the checker, however, and relegated the team to a seventeenth-place finish, 52 laps behind the leader.