Every person required to withhold a tax under sections 235-61 to 235-64, or under regulations adopted pursuant to section 235-66(a), is made liable for such tax and is relieved of liability for or upon the claim or demand of any other person for the amount of any payments to the department of taxation made in accordance with such sections.