Is that an electric fence?
Electrify the top of the post.
A little something for the curious.
....I also like the lid idea.
I meant lip just a little overhang so they can't reach straight down.If you put a lid on top of the fence then they won't be able to just lean straight over and grab him. It's good you have an indoor enclosure for nighttime and when you're not home.