Accountants have a term for this "sunk cost". You've already spent the money. But just because you've spent money doesn't always mean you have to continue spending money to make something work. So there - it's an official business term!!
Sometimes it is best to just let it go and move on to another project! Hope the next one is better suited to you!