protected void RaiseError(Exception error) { this._exception = error; this._errorOccuredWaitHandle.Set(); if (this.ErrorOccurred != null) { this.ErrorOccurred(this, new ExceptionEventArgs(error)); } }