I find that recent models of dishwashers don’t work nearly as well as older models. They don’t heat up enough to dry water off of plastic, and the enzyme based detergents don’t seem to clean as well as the old phosphate detergents. Also, the dishwasher in our current apartment (a cheap Whirlpool) often leaves a wet dog smell on the glasses, and we can’t figure out where it comes from or how to get rid of it. Apparent…
As for the smell "wet dog smell" is usually mold; rinse your plates of food remains before putting it in the dishwasher, clean out your filters regularly (not as necessary if you rinse beforehand), and run a hot, empty cycle with soda crystals. Also, leave it open to air out if it's not running (doesn't need to be open all the way, just enough for the insides to stay dry). All of that also applies to washing machines. Basically, moisture in a closed space will cause mold and smells.