use exit even rather than close to support back to node v0.6.21 - closes #218