Fix missing attribute job.host error and clean up exception printing a little.