Closed the configuration file after reading it.

This commit belongs to issue #54.