Force old connections to close preventing file leaks
remove unused import
Merge pull request #44 from johnoliver/master

Close old sockets preventing file handle leaks