Ensure client connections are closed.
Merge pull request #2 from meskyanichi/patch-close-client

Ensure client connections are closed.