Better redis connection handling