public void IssueClose() { lock (this.SyncRoot) { this.closed = true; if (this.writing) { return; } } this.transport.SafeClose(); }