Section 29. (a) An owner complying with sections 23 to 28, inclusive, or with the requirements of an order under chapter 209A or any other law, shall be relieved of any liability to the vacated tenant, co-tenant or member of the tenant's household, or to any other third party on account of the owner's good faith compliance with a court order or changing the locks as provided in section 26 including, but not limited to, withholding a key from the alleged perpetrator, as provided in subsection (c) of section 26. Damages shall not be imposed if the court determines that the matter was of a good faith dispute between the owner and tenants.
(b) Notwithstanding any general or special law to the contrary, any owner who demonstrates that such owner's conduct constituted a good faith effort to comply with sections 23 to 29, inclusive, shall not be liable for multiple damages or for attorney's fees.