s4 dns: unify error handling when bailing out