Delete all nodes on shutdown (to prevent crashes due to Python interpreter being finalized)