Made pluggable transports stop themselves when necessary