workaround node.js bug that crashes node if _write() calls cb with an error when being pipe()'d to