Close connection after ad impression and each service update