minor improvement to the thread completer