Why has your friend placed a deposit based on what you have noted in the post?
Also what makes you think that they will not build it before the sunset clause? I have never seen this happen. Is it a larger builder?
You will need to get legal advice but I don't think you can terminate the...