Musharraf exit unlikely to undo militants