The director of health of a town, city, or borough or of a district health department may issue a permit for the installation or replacement of a water supply well at residential premises on property whose boundary is located within two hundred feet of an approved community water supply system, measured along a street, alley or easement, where (1) the water from the water supply well is only used for irrigation or other outside use and is not used for human consumption, (2) a reduced pressure device is installed to protect against a cross connection with the public water supply, (3) no connection exists between the water supply well and the community water system, and (4) the use of the water supply well will not affect the purity or adequacy of the supply or service to the customers of the community water supply system. Any well installed pursuant to this subsection, except a well used for irrigation, shall be subject to water quality testing that demonstrates the supply meets the water quality standards established in § 19a-37 at the time of installation and at least every ten years thereafter or as requested by the local director of health. Upon a determination by the local director of health that an irrigation well creates an unacceptable risk of injury to the health or safety of persons using the water, to the general public, or to any public water supply, the local director of health may issue an order requiring the immediate implementation of mitigation measures, up to and including permanent abandonment of the well, in accordance with the provisions of the Connecticut Well Drilling Code adopted pursuant to § 25-128. In the event a cross connection with the public water system is found, the owner of the system may terminate service to the premises.