Manage errors, send reports to API, destroy appView and redirect to error.html