We should probably check for a few known errors, like airplane mode or network unavailable. Check https://github.com/jedp/gaia/blob/4796e9f2169745ccb50a7d141e214818e1b8cf81/apps/system/js/popup_manager.js#L231

We can default to the "crash" error if the error is not known.