make sure "registered"/"registration-failed" event handler don't swaller exceptions