/// <summary>
        /// Raises the <see cref="SubmittedEvent" /> event.
        /// </summary>
        /// <param name="e">The <see cref="EventSubmittedEventArgs" /> instance containing the event data.</param>
        protected internal void OnSubmittedEvent(EventSubmittedEventArgs e) {
            if (SubmittedEvent == null)
                return;

            var handlers = SubmittedEvent.GetInvocationList();
            foreach (var handler in handlers) {
                try {
                    handler.DynamicInvoke(this, e);
                } catch (Exception ex) {
                    _log.Value.FormattedError(typeof(ExceptionlessClient), ex, "Error while invoking SubmittedEvent handler: {0}", ex.Message);
                }
            }
        }
        /// <summary>
        /// Raises the <see cref="SubmittedEvent" /> event.
        /// </summary>
        /// <param name="e">The <see cref="EventSubmittedEventArgs" /> instance containing the event data.</param>
        protected void OnSubmittedEvent(EventSubmittedEventArgs e) {
            if (SubmittedEvent == null)
                return;

            var handlers = SubmittedEvent.GetInvocationList();
            foreach (var handler in handlers) {
                try {
                    handler.DynamicInvoke(this, e);
                } catch (Exception ex) {
                    _log.Value.FormattedError(typeof(ExceptionlessClient), ex, "Error while invoking SubmittedEvent handler: {0}", ex.Message);
                }
            }
        }
        private void GlobalExceptionHandler(object sender, EventSubmittedEventArgs args)
        {
            if (!args.IsUnhandledError)
                return;

            ExceptionlessClient.Default.SubmitLog("Global Exception Handler");
            

            Environment.Exit(1);
        }