It took me longer than expected but I read it

First thing, I really like it, but I think I will be able to explain why in a better way if I take time to gather my thoughts.
However, I was following the story, mostly, until the last chapter. There, I have to admit that I got lost. Can someone explain how it ends? Does the fact that Doc goes back to reading the poem mean that despite his efforts to "disaster-proof" his house, everything went wrong and he's going to keep going on as he always does? Did I miss something?