Catch SIGTERM for graceful shutdown.

SIGTERM now mirrors the behavior of SIGINT.