Ferrer ends era by sending Hewitt into retirement