Fix for non-daemon thread leak. Also gives the threads created meaningful names.