Updating error handler to use notify.