Free some more memory when exiting