Keep the money. If he commisioned you to do web development work, then he is the loser. You have worked for him up to this point so what he has paid is in lieu of what he still owes you. You can't back out of a deal once work has commenced in any kind of contract. This is no different. You have the right to keep the funds received and in my opinion, the entire amount as in the original deal.