IDEX-1193 fix opened files descriptors leak
Merge remote-tracking branch 'origin/master'