rename `end` to `close` for avoiding confusion with superagent/supertest `end` function