A systems approach to management of catastrophic risks