I'm not sure what to do about the racoons but for the mice in the cab I throw about 3 of the tree air fresheners in the cab and close the door the mice can't stand the smell and it's pretty potent when you open the cab door for the next season but at least in doesn't smell like mice.
if you take off the panel that covers up the electric on the right side of the machine, the mice won't eat your electric wires in the cab, not dark enough for them