SHDP-390 Remote batch step exit code not updated

- Adding missing exit code handling so that remote
  steps are updated via appmaster