Close consumers once used. Added debug print statements.