It tells the first file is not closed but i have closed it after it finishes it's work