Issue #91, #98: Making sure that the file will be automatically closed immediately after it has been read