public CommandExecutor(CliGuiContext cliGuiCtx) { this.cliGuiCtx = cliGuiCtx; this.cmdCtx = cliGuiCtx.getCommmandContext(); this.client = cmdCtx.getModelControllerClient(); Runtime.getRuntime().addShutdownHook(new Thread(new ClientCloserShutdownHook())); }