fix: ensure workers are unreferenced at termination