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.