Reset thread name to idle when not in use.

Closes #188.