Assign exit_status (and raise on error) after SSH loop is done.

This ensures that the latest stderr data is present in the exception
message that is raised when a remote command fails.