Handle SIGTERM in addition to SIGINT.

Change-Id: I9c91ec7e2b9026b9eb152b98a6986f2bf773eb03
Merge pull request #361 from prometheus/handle-sigterm

Handle SIGTERM in addition to SIGINT.