Clean up of unneeded resources.