Proper logging for exceptions
Merge pull request #1 from anserran/fixes103

Proper logging for exceptions