I think `_writeResponse` not having a callback is dangerous. We should ensure the response is written before invoking `socket.close()` below.