Fixing problem about slave2Index after stopping slave, added reverse order
added clear slave2Index and tear down