end connection of not used redis client

This change is  for ending  those not used redis connection, which causes the program cannot exit beautifully.