Fixed memory leaks from node database destruction.