execute session loop only if consumer is created