close method
Close the peer connection
Implementation
@override
void close() {
// Make close() idempotent - can be called multiple times safely
if (_closed) return;
_closed = true;
// Remove the message callback to prevent memory leaks
socket.removeMessageCallback(remotePeer, _socketCallback);
}