Add sanity checks to not fire onClose for transport thats closed multiple times.
Add tests
Merge pull request #56 from freedomjs/dborkan-transport

Add sanity checks to not fire onClose for transport thats closed multiple times.