Potential fix for too many open files bug