public void Run(object obj) { try { if (command.IsValid()) { command.Execute(parent.cluster, parent.policy); } parent.ThreadCompleted(); } catch (Exception e) { // Terminate other scan threads. parent.StopThreads(e); } }