Adds SIGTERM handling

closes #4403
- adds SIGTERM handler to match SIGINT handler
Why not just pass shutdown directly, rather than making an anonymous function that calls it?