modify AsyncClose::removeThread