The error handler now throws an exception if the callback is not defined.