10gen/mongo-orchestration — pull request #148 by lovett89 (2014-12-02 22:45:55+00:00)
Title: Catch SIGTERM and SIGINT to clean up processes.

Addresses #144

Previously we relied on `atexit` to call a cleanup function, but the `atexit` handlers don't run if the process is killed with SIGTERM. We send SIGTERM to MO when running `mongo-orchestration stop`, however.