res.close() to res.end()