Yeah but no but yeah.
The US scrapped the moon project because it was never allocated any actual funding to begin with.
At this point, the shuttle is 30- to 40-year-old technology (depending on which parts you look at). The shuttle project can well and truly be said to be well past its prime. So I would say that we finished that project, rather than scrapping it.
The US is not currently planning to scrap the ISS now or in 2020 (re-read the article -- NASA is considering using it through 2028.) Even by 2020, the ISS would be 22 years old. Again, that's an admirable lifespan. (In comparison, my car is only ten years old (and I drive it about 60% as much as the average US driver) and it right now requires maintenance equivalent to over 10% of its original purchase price.)
Technology breaks down. Pioneering technology in harsh environments often breaks down quicker. So the space shuttle and the ISS (and the Mars rovers and Hubble) have actually lasted surprisingly long.
Having said that, the disturbing fact that I think we both agree on is not that these projects are ending, but that there appears to be no cohesive plan to replace them with even equivalent, let alone better, projects.