Fixes #3

Closes fd after read its content