why do we restart elasticsearch here?