han/stalker — pull request #9 by rewritten (2012-05-11 14:20:09+00:00)
Title: Trap "TERM" signals to allow finishing the current job and executing all the needed cleanup code.

When the stalker workers are restarted (for instance by god or whatever other mean) if they are in the middle of a job which is not idempotent, it's not safe to just kill them in the middle of a job, as it may leave the universe in an incoherent state.

Letting the worker finish its job (up to when the process controller decides to send a SIGKILL) will avoid most of these problems.