Avoid errors because of too many open files.

Fixes #8
Release 1.1.2