fix redis connection close