res.json() ends, res.end() can cause error