fix `"undefined is not an object"` with ctrl+c during `next dev`

Merged
DY
1y ago
+29-24

What does this PR do?

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?