Fixed segfault when the there are more than the maximum allowed files open