close xml files if they were unfinished