apps_ui.c: Improve error handling and return value of setup_ui_method()