private void KillRunThread() { try { if (this.runThread != null && this.runThread.IsAlive) { this.runThread.Abort(); this.runThread = null; } } catch (Exception ex) { this.logger.Error(ex); } }