Move the creation of SocketTransport object inside of Session object construction.