Another option is to turn the state of all lines on the port(s) OFF prior to exiting your vi, if this is feasible for your needs. Typically good advice to do this as part of cleanup operations (close refences, close com ports, turn off digital outputs, set analog outputs to 0V, etc)
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~