closed files at the end of the script