_onRendererError() {
        // be sure that the callback has been registered and only call the global error callback once
        setTimeout(() => {
            if(this._onErrorCallback && !this.errors) {
                this._onErrorCallback();
            }
            this.errors = true;
        }, 0);
    }
This triggers the onError callback and is called by the renderer when an error has been detected
*