connect() also return transport

Connect() now return (transport, protocol) instead of protocol only.
This will allow us to use transport to close connection properly.