replace throw on next(err)