cpp: Log unexpected exceptions in TThreadPoolServer

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920672 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/server/TThreadPoolServer.cpp b/lib/cpp/src/server/TThreadPoolServer.cpp
index 0894cfa..6eea3db 100644
--- a/lib/cpp/src/server/TThreadPoolServer.cpp
+++ b/lib/cpp/src/server/TThreadPoolServer.cpp
@@ -72,6 +72,9 @@
     } catch (std::exception &x) {
       string errStr = string("TThreadPoolServer, std::exception: ") + x.what();
       GlobalOutput(errStr.c_str());
+    } catch (...) {
+      GlobalOutput("TThreadPoolServer, unexpected exception in "
+                   "TThreadPoolServer::Task::run()");
     }
 
     if (eventHandler != NULL) {