make CriticalError a feature

I don't think so, I think u have to do it as a injectable prop and then check for null