check for open files before repacking