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

close connections properly