private static final L10N L = new L10N(AbstractManagementCommand.class);
@Override
public void doCommand(WatchdogArgs args,
WatchdogClient client) {
ManagerClient managerClient = null;
try {
managerClient = getManagerClient(args, client);
doCommand(args, client, managerClient);
} catch (Exception e) {
if (args.isVerbose())
e.printStackTrace();
else
System.out.println(e.toString());
} finally {
if (managerClient != null)
managerClient.close();
}
}