If the water taps are not totally closing when shut off, there is a problem in the taps and the washing machine has nothing to do with it.
If water is continuing to enter the washing machine even when not in use, the washer's water valve may not be closing tightly and may need to be replaced.