updated redis error handling