Ruby: Fix error handling failures for remote.