A node.js stream that stops piping a stream when a signature is reached