renamed _extensions_onerror to _handle_extension_error
updated version