master: Change return to exit. Remove function yes_no_dialog