Join thread after use. Refs #1.