lifecycle.go: shutdown safely with sighup