I am not familiar with RV washing machines, but top load styles typically have a micro switch in the lid which will stop the wash cycle if someone opens the lid. (I "assume" front loads might be similar, but our old top load Maytag washer keeps on ticking - knock on wood). It is not impossible to have a flaky micro switch that is on its last legs to stop the action when you least want it to......or fail to start it also. As you can imagine they are in a nasty location, but are cheap and easy to change usually. Of course it could also just be a loose connection somewhere else in your machine. Intermittent electrical problems are the worst, or, you have a pair "magic" shorts.