An event of disastrous proportions was stopped just in the nick of time.