Added elasticsearch.shutdown() function