Quantifying and Controlling Catastrophic Risks