Any state, county or town employees or public utility employees who, in the course of their respective public duties, must perform acts enumerated in this chapter said acts shall not be construed as violations hereof.