Many projects fail and when it happens the first time, many participants feel gutted. One of my first assignments out of college was to work on a large project and literally on the eve prior to going to production, the company canceled the project as advances in hardware had made the product obsolete. I was devastated, but one has to learn how to pick themselves up and move on. After all, they paid me to build something and I did. It was always out of my control to determine what they did with my team's work.
Is that the scenario you're talking about?
Take it for whatever it is, if it is effective and provides you comparable value.