restore catch_exception