Expose exit code and stderr of ssh commands

Raise non-zero exit codes together with stderr output.
Previously failing commands were silently ignored.