Catch all types of exceptions in main routine and show a message box on error (with some diagnostics)