close redis client properly