Fixed a memory leak for when we're destroying the client.

We kept around event emitters that kept a reference to the client. We now call removeAllListeners on 'close'
Merge pull request #45 from arianitu/fix_destroy_memory_leak

Fixed a memory leak for when we're destroying the client.