fixes #7150 - stop elasticsearch before resetting data