public static void Close(this IProxy proxy) { if (proxy == null) { throw new ArgumentNullException(nameof(proxy)); } proxy.CloseAsync().ConfigureAwait(false).GetAwaiter().GetResult(); }