try {
os.write(Protocol.AUTH);
os.write(1);
os.write(authCode);
final ProcessControllerClient processControllerClient = new ProcessControllerClient(connection);
connection.attach(processControllerClient);
log.trace("Sent initial greeting message");
os.close();
ok = true;
return processControllerClient;
} finally {