fix NTS shutdown dtor bug