public void Run(object obj) { try { if (command.IsValid()) { command.ExecuteAndValidate(); } parent.ThreadCompleted(); } catch (Exception e) { // Terminate other query threads. parent.StopThreads(e); } }