protected void checkState() {
    if (shutDown) {
      throw new IllegalStateException("Shutting down");
    }
    assert isAlive() : "IO Thread is not running.";
  }
Check to see if this connection is shutting down.

@throws IllegalStateException when shutting down.
src/main/java/net/spy/memcached/MemcachedConnection.java