Emit more structured error messages from extension install process. Fix bug
where canceling download switched to error UI state instead of cancelation
state.