Merge pull request #1 from mcamou/master

Logging exceptions when exceptions happen