private void Shutdown() { _trace.TraceInformation("Shutdown()"); if (_connection != null) { _connection.Close(_key, allowCommandsToComplete: false); } Interlocked.Exchange(ref _state, State.Disposed); }