If you are only talking about really wrong errors and debug mode, then I would write those to a error log file and exit the app, the chances are you will need to change the app at some point after than anyway.