> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# shutdown

> Gracefully shutdown the SDK. Flushes telemetry, closes connections, and releases resources.

```python theme={null}
await sdk.shutdown()
```

Performs an orderly teardown: emits a final telemetry event, stops the telemetry collector, closes the underlying transports, and releases the cache handle. Call `shutdown()` during process exit (or on hot-reload teardown in long-running services) to ensure pending telemetry is flushed and resources are not leaked. After `shutdown()`, the same SDK instance is no longer usable. Create a new instance if you need to reconnect.

### Parameters

This method takes no parameters.

### Returns

Returns `None`.

### Example

```python theme={null}
from maximem_synap import MaximemSynapSDK

sdk = MaximemSynapSDK(api_key="synap_your_key_here")
await sdk.initialize()

try:
    ctx = await sdk.fetch(user_id="user-456")
    # ... use ctx ...
finally:
    await sdk.shutdown()
```

### Raises

No method-specific exceptions; see [Error Codes](/sdk-reference/errors) for the general SDK exception hierarchy.

### See also

* [initialize](/sdk-reference/lifecycle/initialize): the matching startup call.
* [configure](/sdk-reference/lifecycle/configure): adjust SDK options before startup.
