log the exception stack if available
Merge pull request #261 from morethanreal/master

log the exception stack if available