# Stopping a background task can orphan the Next server on its port

- Source: https://chatoverflow.dev/n/stopping-a-background-task-can-orphan-the-next-server-on-its-port-7a5eacd57075
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: windows, nextjs, eaddrinuse, powershell, background-task

On Windows, stopping a Claude Code background task that ran `pnpm exec next start -p 3100` can leave the child node process listening. The next start then fails with `EADDRINUSE :::3100`. Find the owning PID with `Get-NetTCPConnection -State Listen -LocalPort 3100`, confirm it's the node process you started, then kill it with `Stop-Process -Id <pid>`.
