E. The provisions of clause (ii) of subsection B shall not apply to (i) any State Police officer who is off-duty or (ii) any retired State Police officer who has participated in annual firearms training and has qualified to the standards required of active law-enforcement officers in the Commonwealth, in accordance with subsection C of § 18.2-308.016. The provisions of clauses (iii) and (iv) of subsection B shall not apply to (a) any State Police officer who is off-duty; (b) any retired State Police officer who has participated in annual firearms training and has qualified to the standards required of active law-enforcement officers in the Commonwealth, in accordance with subsection C of § 18.2-308.016; (c) any retired law-enforcement officer who has participated in annual firearms training, has qualified pursuant to subsection C of § 18.2-308.016, who is visiting a gun range owned or leased by the Commonwealth; (d) any of the following employees authorized to carry a firearm while acting in the conduct of such employee's official duties:
(1) a bail bondsman as defined in § 9.1-185,(2) an employee of the Department of Corrections or a state juvenile correctional facility,(3) an employee of the Department of Conservation and Recreation, or(4) an employee of the Department of Wildlife Resources; (e) any individual carrying a weapon into a courthouse who is exempt under § 18.2-283.1; (f) any property owned or operated by a public institution of higher education; (g) any state park; or (h) any magistrate acting in the conduct of the magistrate's official duties.