Every person whatsoever to whom any power is given, either judicial or ministerial, by this chapter which, by virtue hereof, he is required and commanded to exercise who shall wilfully neglect, refuse or omit to exercise the power when such exercise shall be legally requested and demanded, according to the directions herein, and when the person so requesting and demanding such exercise is legally entitled so to request or demand by the provisions of this chapter, for each such offense shall forfeit the sum of five hundred dollars and shall be thereafter incapable of holding or executing his office.