always close connection to avoid problems with e.g. varnish 4.0.