Adding instruction to close file