[elasticsearch] use net/http to close index, not curl