Avoid 'Too many open files' on Unix
Merge pull request #172 from olear/issue169

Avoid 'Too many open files' on Unix