I suppose that is what Errors and Omissions insurance is for.