void () { Map<String, Connector.Argument> arguments = myArguments; try { if (arguments == null) { return; } if (myConnection.isServerMode()) { Connector connector = getConnector(); if (connector instanceof ListeningConnector) { ((ListeningConnector)connector).stopListening(arguments); } } } catch (IOException | IllegalConnectorArgumentsException | IllegalArgumentException e) { LOG.debug(e); } catch (ExecutionException e) { LOG.error(e); } }