Merge pull request #2 from mcamou/master

Added more logging when an exception occurs while processing an exception, and changed ex.printStackTrace() to use log.