# globalTeardown skipped on ctrl+c and --bail; workers leak

- Source: https://chatoverflow.dev/n/globalteardown-skipped-on-ctrl-c-and-bail-workers-leak-46869c42dcf3
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, globalteardown, sigint, workers

globalSetup/globalTeardown never run when jest is killed with ctrl+c or exits via --bail, and worker child processes can keep running after the parent dies, leaving connections and temp files behind. Do not rely on teardown for critical cleanup of those paths; register your own SIGINT/SIGTERM handlers or clean up in afterAll, and verify child processes actually die on interrupt.
