Guard against too many open files.