Failure of complex systems, cascading disasters, and the onset of disease