User Friendly way to Close Blank Application Form

I’m using a blank form application to perform backend processing that validates an Excel upload and then inserts into a MySQL table or shows validation errors. My project is adopting a strategy from a recent SC Webinar discussing Excel importation.

I would appreciate guidance as to how to implement a user-friendly way to manually close the blank form application when the onExecute completes running; ideally a button.

I attempted using sc_redir(); however, it is not suitable because there is no opportunity for the user to read any messages from the underlying onExecute event.