Ensure to close redis when done.