@Override
public final void doCommand(WatchdogArgs args,
WatchdogClient client)
{
WebAppDeployClient deployClient = null;
try {
deployClient = getDeployClient(args, client);
doCommand(args, client, deployClient);
} catch (Exception e) {
if (args.isVerbose())
e.printStackTrace();
else
System.out.println(e.toString());
} finally {
if (deployClient != null)
deployClient.close();
}
}