thread worker interrupts and detach upon shutdown of lib