But Kumble , who is likely to be replaced as skipper by Mahendra Dhoni , took the decision into his own hands and brought the curtain down on his Test career at a ground where he took 10 wickets in one innings against Pakistan in 1999 .