Remove copy button code from the error dialog.
Remove silent catching of exceptions in the main function.