Replaced throw e with cb(err)