When the shepherd css is not included in the DOM, previous steps do not go away.
The css has something along the lines of
.shepherd-element {
display: none;
}
.shepherd-element.shepherd-open {
display: block;
}
This is a pretty simple amount of functionality that would be ideal to have the javascript handle.