public override int Execute(string[] commandLineArguments) { try { Options.Parse(commandLineArguments); journal.RemoveAllLocks(taskId); } catch (Exception ex) { log.ErrorFormat("Failed to release package locks"); return(ConsoleFormatter.PrintError(log, ex)); } journal.ExpireStaleLocks(GetTimeBeforeLockExpiration()); return(0); }