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.