Add exception handling for redis connection errors