fix race condition on stop when a client connection was created while the transport was stopping, this caused the call to releaseExternalResources to hang
handle connection exception and call callback
Merge pull request #239 from wajam/fx-fix-transport-close-race

Fix race condition on transport stop.