OK. I understand now.
Your solution should work. Both variables are referencing the same object.
Another possible approach to work around the argument/exception issue is to try setting up the variable holding the terminal connection as a global variable.
This way you wouldn’t need to pass it around the workflows at all and the KillAllProcesses workflow would have a proper terminal connection to close.
