Restore functionality to close channel AFTER all connections have been close.
Merge pull request #6 from isaldana/master

Restore functionality to close channel AFTER all connections have been closed