When test expect to wait for remote process, use vm.run_for_stdio. Additionally, when the call fail, (stdout, stderr) is not assigned - use the one attached to exception object instead.