41-year-old retires after 234 games for Portugal.