exception::register_callback