import java.io.IOException;
import java.sql.SQLException;
import java.text.MessageFormat;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import org.mxchange.addressbook.BaseAddressbookSystem;
import org.mxchange.addressbook.client.AddressbookClient;
import org.mxchange.addressbook.client.console.ConsoleClient;
this.getLogger().debug("Initializing application ..."); //NOI18N
// Init client variable
- Client client = null;
+ Client client;
// Is console or Swing choosen?
if (this.isConsole()) {
} else {
// Not client choosen
this.getLogger().error("No client choosen. Cannot launch."); //NOI18N
+ try {
+ this.doShutdown();
+ } catch (final SQLException | IOException ex) {
+ // Abort here
+ this.abortProgramWithException(ex);
+ }
+
+ // Bye ...
System.exit(1);
}