private void SafeCall(Action action, Action<Exception> exceptionHandler) { try { action(); } catch (Exception ex) { if (this.InvokeRequired) this.Invoke(exceptionHandler, ex); else exceptionHandler(ex); } }