I'm in a bad situation in my job. The project lead on the project I've been assigned to left the company and pretty much left the project in a state with a very large amount of work that needed finishing. Because I was the only other coder on the project, I've was handed that enormous amount of work with an unrealistic deadline which at first I didn't notice because I skimread the requirements (I wasn't the project technical lead), but now I do realize how impossible it is to deliver on time.
I'm pretty much being made a scapegoat for the failure of the project by management instead of the tech lead who just walked out, who IMHO is the real reason the project won't be delivered to the client on time. I've had enough of this and handed in my notice recently but I still technically have 3 weeks to go until my notice period ends. Could I just flat-out refuse to do any more work on this project considering that it's pretty much guaranteed to be a disaster? I feel like either way I will be blamed for the failure so why waste time working on it. Could I be fired for gross misconduct if I refused to work my notice period?