Section 13. Any person making a handbook, at any race track within the commonwealth, or holding or conducting a gambling pool or managing any other type of wagering or betting on the results of any horse or dog race, or aiding or abetting any of the foregoing types of wagering or betting, except as permitted by this chapter, shall for a first offence be punished by a fine of not more than two thousand dollars and imprisonment for not more than one year, and for a subsequent offence by a fine of not more than ten thousand dollars and imprisonment for not more than two years. Any jockey, trainer or owner of horses participating in horse or dog racing, if found guilty by the commission of unfair riding or crooked tactics, may be barred or suspended from further participation in racing throughout the commonwealth.