Handle const char* exceptions in main()