 In the first case, he was killed by Orestes.In the second, revenge was taken by the Delphic priests of Apollo.After his death his kingdom was portioned out and Helenos (who later married Andromache) took part of it.