Request to close index fails due to socket timeout

It would be great if you could suggest some best practice around closing index effectively