closure, Node.js and cleanup support