Close connection functionality added.
Subscription.wait function added.
Merge pull request #16 from cleandart/new-features

New features