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

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