Hood has it right, same here at every job end return the machine to it's starting point in both position AND modal values. The rule here is leave it like you found it.
As to the machine setup and control codes YOU are the only one that knows how it works VB or Brain wise.(;-)