logger.error("Error when reading from console.");
}
} while (argument != null);
sayGoodbye(converter, logger);
} finally {
converter.shutDown();
}
console.printf("The connection was successfully closed. Goodbye!%n");
} catch (Exception e) {
LoggerFactory.getLogger(StandaloneClient.class).error("The document conversion client terminated with an unexpected error", e);
System.err.println(String.format("Error: %s", e.getMessage()));