Newer versions of varnish prints a header that confuses the module. Run quit and read to connection close string instead.
Merge pull request #116 from tommybotten/master

Varnish module appears broken for v 2.1.5 and newer.