Rename error event as a workaround for https://github.com/harthur/firefox-client/issues/2