> For the complete documentation index, see [llms.txt](https://docs.hypertune.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hypertune.com/sdk-reference/shut-down.md).

# Shut down

To shut down an SDK, use the `close` method. This will cleanly stop all its background processes, flush all its buffered logs and terminate all its connections:

```typescript
process.on("SIGTERM", async () => {
  const hypertune = await getHypertune();
  await hypertune.close();
});
```
