Exit after receiving SIGTERM

This replaces #7240

Signed-off-by: Michael Crosby <michael@docker.com>