Better error handling

* If logger.error_occured == True, it exits with a non-zero error code, but it
  doesn't print anything, as the logger has already printed the error message

* Otherwise prints the stacktrace and ask the user to report this as a bug
Use latest hashdist
print errors to stderr instead of stdout