Log the stack trace when a LoadingQueue task throws an error

Fixes #658.
Merge pull request #659 from peitschie/log-fixup

Log the stack trace when a LoadingQueue task throws an error