public void Close() { if (_queue.IsAddingCompleted) { return; } _queue.CompleteAdding(); _closeWaitHandle.WaitOne(); _decoratedWriter.Close(); }