Include exception in logged error messages

To improve the user's ability to understand what the problem is, include the exception when logging error messages.
Merge pull request #30 from candrews/patch-2

Include exception in logged error messages