Close elastic search when context is disposed