The end of a mistaken war