Free connection data correctly when disconnecting the remote peer.