Changed take's termination testing to do one last sweep for files before exiting