well, be forthcoming about the flaws, give a reasonable guarantee period (I give 1 month, if it comes back I will keep doing it until 1 month is over), and let your customer decide. If they decide to give it up, that's fine. Offer data transfer/migration in that case.