A disaster of epic proportions has been averted.