Cleanup when a job finishes, cleanly or otherwise.

This also names the job thread.
Merge pull request #420 from square/jwilson_0107_cleanup

Cleanup when a job finishes, cleanly or otherwise.
Remove unnecessary allocation in building Headers.
Merge pull request #422 from adriancole/extra-alloc-headers

Remove unnecessary allocation in building Headers.