removed sleep waiting for ES to come up and instead using proper embedded ES startup