maybe this should be added as a decorator to the run_cmd and run_cmd_qa functions?

Since it might be forgotten to port this when we switch to the run command stuff that is now in VSC-tools (which we are going to do in the future)