Added catch(...) to try/catch to make sure we log all types of exception including non-std::exception thrown.