redis cleanup in tw module