These should be in an `if` that tests for the `with-handlersocket` option.