Make sure that VFP_Close is always called if and only if VFP_Open was called
Make sure that VFP_Close is always called if and only if VFP_Open was
called

For some (out of workspace or stevedore allocationi failure) errors
VFP_Close would fail to be called when ending up not retrying the
fetch. This would then potentially leak VFP entry context data like
gzip buffers. Fix this by always calling VFP_Close() when changing
fetch state when VFP_Open() has been called.

Also VFP_Close() would for some retries be called twice, causing
double accounting log records print out. This happens when a late
error is caught and streaming is disabled, allowing a retry to be
attempted. Fix this by not unconditionally calling VFP_Close() in the
error state.

gquintard/Varnish-Cache,gquintard/Varnish-Cache,feld/Varnish-Cache,feld/Varnish-Cache,feld/Varnish-Cache,feld/Varnish-Cache,gquintard/Varnish-Cache,gquintard/Varnish-Cache,feld/Varnish-Cache