Resolved issue with too many open connections (Fixes #7).

Refer to work and tests in the "issue-7" branch.