At least with the knowledge in two years things will you can begin preparing for that change. Look at what the end of the project is, what would come naturally after the end, is there a second step or part two to the project?
Some things can be prepared for, and some fall back positions set up. Do you think the whole team will be let go, or just repurposed?
This is what I have already identified as a possibility, but I am not sure I would want to do it in two years :)