The provisions of this chapter shall not apply to any suit, action or proceeding against any foreign company not lawfully admitted to transact business in the commonwealth arising out of any contract of insurance effectuated in accordance with section one hundred and sixty-eight of chapter one hundred and seventy-five, or to any contract of reinsurance, provided that such contract contains a provision designating the commissioner of insurance or his successor in office its true and lawful attorney upon whom may be served all lawful process in any action, suit or proceeding instituted by or on behalf of an insured or beneficiary arising out of such contract of insurance.
Mass. Gen. Laws ch. 175B, § 3A