We want resource cleanup to happen correctly (e.g. via the bracket pattern) with SIGTERM as well as SIGINT. This MR achieves that.
bracket
Open question: should we also handle SIGQUIT? What about other process ending signals?
Related issues:
#10169 #6113