CA-137485: Make exceptions serializable in the C# SDK