[Test] make sure to close the file at the end of the test
Docs: Adding Hebrew analyzer

Closes #6306
[DOCS] fix typo
Startup: Reset locale to en_US.UTF-8 in bin/elasticsearch

Because the NetworkExceptionHelper class relies on the english language in
order to extract information and decide whether a certain exception is a
network problem, we need to set the english locale on startup in order
to prevent other locales to circumvent this check.