fix another redis connection error on shutdown unhandled exception.