connect was not being ended, resulting in a file-descriptor leak see #9.

This should fix the FD issue.