added app::fatal method for adding a listener for fatal errors.