internal bool IsOpen(bool includePendingClose) { lock (this) { return !(closed || (includePendingClose && closing)); } }