code: void cancel() {
          connection.removeConnectionListener(connListener);
          ((ObservableReader) reader).removeReaderListener(readerListener);
          ((ObservableWriter) writer).removeWriterListener(writerListener);
          messagesTable = null;
      }
docs: Stops debugging the connection. Removes any listener on the connection.