Any person who shall voluntarily withdraw from the state police force, without the consent of the superintendent, shall be guilty of a misdemeanor.