Rubber duck debugging
That sounds fun. Or not.

I spotted some places in the code where errors weren't properly handled.
Merge branch 'master' of github.com:lesmon/thd