fix: ensure `worker_threads` workers are unreferenced at termination