Currently errors are handled once the webview is initiated. We should also handle errors before the webview gets started.