<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Tor",
  "identifier" : "/documentation/Tor/TorState/stopped",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Tor"
    ],
    "preciseIdentifier" : "s:3Tor0A5StateO7stoppedyA2CmF"
  },
  "title" : "TorState.stopped"
}
-->

# TorState.stopped

Terminal state after a clean shutdown — all resources released.

```
case stopped
```

## Discussion

The `tor_run_main()` thread has returned, the control socket is
closed, and `configuration.dataDirectory` has been removed if
`configuration.ownsDataDirectory` is `true`. [`start()`](/documentation/Tor/TorClient/start())
may be called again; it will re-enter `.starting` with a fresh
data directory.