handle SIGTERM as well as SIGINT

Fixes #68