The sshd lib doesn't expose the exit code directly (only in a stack trace) when using the executeRemoteCommand API. We should use a lower level API if we want to actually get the Exit Code. At the moment we assume 0 when everything works and just use -1 when it doesn't.