Fix race in exit of eta/util thread