Added handling failures and fatal exceptions.