Closes the second file to free resources