Cleanup Redis connections

@jedp - mind reviewing?

This PR cleans up all of the redis FD connections when no longer needed, keeping the number of FDs open at ~5. I have seen it spike to 11, but it then returns to its steady state of 5.