Catch std::exception before ... and output e.what()