Predicting Catastrophes: The Role Of Criticality