closing file after usage