No such city or town or other public corporation or other person shall be liable for any loss, damage or other claim based on or arising out of the stopping or restricting of such supply, and the county government shall pay the reasonable cost of so stopping or restricting such supply and of restoring the same and may agree to indemnify such city or town or public corporation or other person from