Adding close file command