public static void AbortBackgroundThread() { _shouldStop = true; if (_thread != null) { _thread.Join(); _thread = null; } }