After foreclosure by a town of the rights of redemption under a tax title or taking, as hereinbefore provided, the land shall thereafter be held and disposed of like any land belonging to it and held for municipal purposes, and shall not while so held be assessed for taxes.
Before foreclosure so much of the provisions of any covenant or agreement running with the land as calls for the payment of money by the owner thereof shall not be enforceable against a city or town which is the owner of record of the land under a tax title or taking, except during any period in which the city or town directly or indirectly in any capacity accepts or receives the benefit of such covenant or agreement or of any right or privilege created or affected thereby.
Mass. Gen. Laws ch. 60, § 77