redis shutdown bug fix