Also handle SIGTERM.
Merge pull request #253 from vmarmol/shutdown

Also handle SIGTERM.