Client.endConnection C# (CSharp) Method