end stream on error
emit head after onHead is run
Merge pull request #1 from mafintosh/patch-1

end stream on error