decorator to handle redis going away, as per #2