@Override
        public void close(ChannelPromise promise) {
            logger.debug("Closing the Serial Port '{}'", ((SerialSocketAddress) SerialChannel.this.remoteAddress).getIdentifier());
            eventLoop().execute(() -> {
                try {
                    doClose();
                    promise.setSuccess();
                } catch (Exception e) {
                    logger.warn("Unable to close the connection", e);
                    promise.setFailure(e);
                }
            });
        }
Create a new instance

@param parent the parent {@link Channel} by which this instance was created. May be {@code null}
@param ch     the underlying {@link SelectableChannel} on which it operates
plc4j/transports/serial/src/main/java/org/apache/plc4x/java/transport/serial/SerialChannel.java