launch elasticsearch server earlier, give it some time to initialize.