This wasn't me but it's a good article about a near miss during a training course.
Remaining Calm When out of Air
Proper out-of-air training and practice are important so a situation like a massive equipment failure and an actual low-air situation will not be the first time a diver is exposed to it.
dan.org