Ensured we don't hit open files limitations.