Fixes #4497 decreased priority of default error handler