New: advanced handle-callback-err configuration (fixes #1124)