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

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 110+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> For Portal availability errors, stalled streams, or rate limiting, read https://status.sqd.dev/status.md. The status index at https://status.sqd.dev/llms.txt explains network and plan filters.
> Every page on this site is available as Markdown by appending .md to its URL.

# E3002

> Graceful shutdown — Shutdown timed out

The shutdown outlasted its `timeout`. The `step` property says what was still running: `drain` (a
target commit or a hook) or `onShutdown`. That work cannot be cancelled and may still be running. A
drain failure that came first is in `cause`.

If the timeout expires during draining, `onShutdown` waits until draining and cleanup settle.
It does not run if the drain never settles.

**Fix** — the persisted cursor never passes unconfirmed data, so a restart is safe. If this repeats, raise
the `timeout`, and keep it below the deadline of whatever sends the signal. Exit the process when you
catch this error, because the unfinished work may keep it alive.


## Related topics

- [Error reference](https://docs.sqd.dev/en/sdk/pipes-sdk/reference/errors.md)
- [Graceful shutdown](https://docs.sqd.dev/en/sdk/pipes-sdk/solana/guides/architecture-deep-dives/graceful-shutdown.md)
- [Portal stream](https://docs.sqd.dev/en/sdk/pipes-sdk/evm/reference/basic-components/source.md)
- [Changelog](https://docs.sqd.dev/changelog.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.