It looks that the above issue only happens consistently with a client when it exits, and does not
happen the server which runs continuously. I observed similar errors with the chat client
obtained from: http://www.alepho.com/index.php?do=coding&date=20110705
If you do a Google search on "terminate called after throwing instance poco systemexception",
similar issue reports will turn out, and I have not yet found a clear resolution from those posts.
Also this post (viewtopic.php?f=12&t=1308&p=2793#p2793
suggested it is due to the way ErrorHandler works in Poco.
I am really surprised to get hit with this time hole upon playing with Poco,