Modified connection to use channel returned from pipe to wrap it into a proxy class.