Free arrays before exiting program.