Fixed potential race condition that could be causing #DESURA-876
Updated handling of tool errors to be more informative
Added check for null thread
Merge pull request #906 from lodle/DESURA-875

Desura 875