Thanks John, I had fixed the shutdown function on my test server but forgot to merge that change in. I’ve removed those includes too. 🙂

Strange that the table wasn’t created automatically, they were when I ran a site upgrade.