private void executionStateChangedHandler(object sender, EventArgs e) { if (stopping) return; if (InvokeRequired) Invoke(new MethodInvoker(updateExecutionState)); else updateExecutionState(); }