On a stop signal such as SIGTERM the process stops accepting new connections, closes idle ones, waits for requests already running, and only then exits with code 0. A timer usually forces exit if something never finishes.
Graceful shutdown
Stopping a server by refusing new work but letting in-flight requests finish before exiting.