Fix for issue with chained orderBy clauses + cleanup of error handling for non .NET clients.