private void OnProtocolClose(object sender, CloseFrameEventArgs e) { this.State = ProtocolSessionState.Closed; if (this.OnClose != null) { this.OnClose(this, e); } }