fixed issue with hangs pipeline shutdown in Redis (Fixes #1779)