public void Stop() { if (this.thread != null) { this.run = false; this.thread.Join(); this.thread = null; } }