Cleanup when a job finishes, cleanly or otherwise.

This also names the job thread.