added error when connection lost on redis