Clean up memory after usage, and other