@Samelot another way we could clear the interval:

    res.on('end', function() {
        clearInterval(interval);
    });