Deleted close file method