Revert "Fix exception handling of appcore_ui_base API"