fix leak with files not cleaning up correctly

Can you add the word "cache" in there somehow so it's clear *why* its being deleted?