public static void quit(ProcessWrapper proc) { proc.sendLine("quit"); proc.readNextLine(); proc.stopAllReadingAndQuit(); }