Handle SIGTERM gracefully.