close connections properly
Merge pull request #139 from harpreet-sawhney/master

close connections properly
Added test to verify connection leakages
Merge remote-tracking branch 'upstream/master' into closing_connections
Merge pull request #141 from relops/closing_connections

Transplant test to demonstrate leaking connections