The bad smell from your washer can be as a result of the drain having issues. It can be due to build up of bacteria and you can use washing soda crystals to try and get rid of the smell. You can also use bleach or run an empty wash with hot water.
If it's a HE washer that's normal, just purchase some washer cleaner from Wal-mart,Walgreens or any place like that. It cleans out your washing machine and the smell disappears I had the same problem but like I said only if it's a HE washer..:)
It's probably not your washer that smells bad. When a lot of water goes down the drain all at once, sewer gases are pushed up and into the air. I sometimes notice the same thing around the floor drain in my basement when there's been a heavy rain.