In #73690 we introduced a way for plugins to integrate with the node shutdown mechanism, but we bypass this mechanism when gracefully shutting nodes down in ESIntegTestCase. I think we should use the same shutdown mechanism in these tests as in production to ensure proper test coverage.