If implementing a custom `RpcSmartSubtransport` that throws an exception during the read or write operation, the error message is ignored in the `SmartSubtransportStream` because it is not a `NativeException`. Related PR with fix and repro test: https://github.com/libgit2/libgit2sharp/pull/2164