avoid a race/deadlock on worker listener shutdown
cleanup all data races found by go test -race. atg.