fixing redis quit in before hook