error handling for redis disconnection