close consumer only once