I suppose this was the right time for him to quit, since a person should quit respectfully rather than being kicked out of the team. He is one of the batting legends and he deserved a respectful farewell. Even though he might not have been treated by the indian board the way he deserved, but still sooner or later he had to go (with so many talented newcomers waiting for the national call). So even though the farewell isn't the way it should have been, but still the timing (as per me) is right.