I have outdoor cat beds for the ferals that I will wash in my washing machine separate from other items. If you can do it, wash and rinse with as much hot water as you can. I usually add enzyme cleaners to the wash when I do this.
The same for items inside the house that the dogs and cats have managed to make a mess of.
If you are concerned about your machine afterwards, wipe it out with a cleaner than is recommended by the manufacturer of your machine. Most of the manuals tell you what types of chemicals are safe inside the drum.