Backport master bugfix iof run_command.exitstatus

Change-Id: I78f4880b2a68ae5ab02cfa4e37aa07992bbc7c1e
Related-Bug: #1320033