Bug 979160 - Outgoing connection failure shall trigger OnConnect instead of OnDisconnect, r=echou