Legendaríski portúgalski framherjinn hefur opinberlega lokið alþjóðlegum feril sínum eftir tímabil agaðra spennu með liðsstjórnun.