Issue: #23 - display stack trace on error

Implemented the patch shared by @sprijk to allow stack traces to be
logged on error.