Whoever violates any of the provisions of this chapter is guilty of contempt of court, a misdemeanor of the first degree, and shall be fined not more than one thousand dollars ($1,000) or imprisoned not more than six months, or both, for each offense.