fixed node.js stream cleanup issues
#27 - added tests for error cases