Those errors were primaraly from threads that somehow froze and were forced to quit during shutdown. Apache::Session tried to save the data from the tied hash and failed because the database had already been shut down... at least that's my interpretation.
My code doesn't have bugs, it just develops random features.