finish closeScope and removeFromHashChain