heartthreader: fixed blocking at end of testing