They only live for 3 years or so, just eat them when they're close to kicking the bucket.
This short lifetime combined with their intelligence does raise the question how far an octopus could get if it were able to reach our age. Would they continue learning and adapting, leading to a race of superintelligent molluscs or would they plateau in their first year and just coast along?