Added closing file print