Output stack traces with error logs
Merge pull request #390 from balupton/stacktraces

Output stack traces with error logs