Exit after receiving SIGTERM

Signed-off-by: Michael Crosby <michael@docker.com>
Merge pull request #7568 from crosbymichael/replace-7240

Exit after receiving SIGTERM