protected override void OnClose(TimeSpan timeout) => endpoint.Close((int)timeout.TotalMilliseconds);
protected override void OnAbort() => endpoint?.Close(0);