Washing mushrooms is absolutely fine as long as it is a quick rinse. Just avoid soaking them in water, If you're still hesitant, you can wipe off any dirt with a damp towel.