fix issue with new nodes, only add gzid when it is available.
bugfix: only attach a file to the ticket if it is set, otherwise don't do anything.
log the whole error tree to make debugging easier.